Asp Dot Net Notes for Web Masters RSS 2.0
# Wednesday, June 03, 2009
When trying to add inline Java Script to a Generic Content control the script tags are HTML encoded / removed.
This is the default behaviour so we must enable script tags.

To do this you must edit the control template for Generic Content.

Open the following file in Visual Studio:
Sitefinity --> Admin --> ControlTemplates --> Generic_Content --> App_LocalResources --> ContentVersionView.aspx.resx

Add a new setting: ContentFilters = None

There are still some problems with this. E.g. If you use a noscript tag then the contents of that tag will still get HTML encoded.
Wednesday, June 03, 2009 4:25:05 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0] - Trackback
Controls
Comments are closed.
Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
I do I.T. Ltd.
Sign In
Statistics
Total Posts: 23
This Year: 2
This Month: 0
This Week: 0
Comments: 1
All Content © 2010, I do I.T. Ltd.