function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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 :)
szad khnszad khn
Thanks for sharing this information with us. Movie4me download (https://indiakabest.in/movie4me-movie-download-hindi/)
szad khnszad khn
Your website is so amazing, Movie download karne wala apps (https://indiakabest.in/movie-download-karne-wala-apps/)