+ Start a Discussion
Scott.MScott.M 

Rich Text Displaying tags in Site Page

Hi,

I've setup a custom object and a visualforce page that displays the contents of the object. I setup a visualforce page to create new objects. One of the fields uses rich text but when I display the field in the site page, it's displays the html tags. Any ideas why it might be doing this?

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
dchasmandchasman
This is standard VF auto escaping functionality that is in place to protect you and your users from javascript injection attacks. How are you displaying the value - e.g. using a plain {!xxx} expression, apex:outputText, etc? If you need to display markup you can leverage the <apex:outputText escape> attribute set to false.

All Answers

dchasmandchasman
This is standard VF auto escaping functionality that is in place to protect you and your users from javascript injection attacks. How are you displaying the value - e.g. using a plain {!xxx} expression, apex:outputText, etc? If you need to display markup you can leverage the <apex:outputText escape> attribute set to false.
This was selected as the best answer
Scott.MScott.M
Thanks Doug,

That was it, good to know there's security features like that :)