Fix HTML tags in Single-line or Multi-line text fields

Between Sitecore 6.5 and Sitecore 6.6 Sitecore changed the way that Text Fields are rendered.They changed it so that text fields output was HTML Encoded. This is technically correct, and it’d be fair to call this a bug fix. It’s much safer to prevent users injecting HTML.

However, this is a problem for systems where users have put HTML content into those text fields, especially where you have thousands and thousands of pages.

For example, in a widget:
Example in a Sublayout

Or in a footer:
Example in Footer

Identifying where those fields contain such values could be … challenging. Instead, Martin English has written a nice processor for the RenderFields pipeline that should restore the old unencoded HTML output.

Advertisements
Fix HTML tags in Single-line or Multi-line text fields

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s