+ Start a Discussion
Rolando EstevesRolando Esteves 

Problems displaying RIch Text Area Field

Hi im having problems displaying a RTF Field. For some reason it displays all the HTML tags and i want the field to be displayed exactly as a i saved it when i created the record.

 

VF Code

<apex:page standardController="Noticia__c">
<apex:outputText escape="false">{!Noticia__c.Contenido__c}</apex:outputText>
</apex:page>

 

Thanks for all the help!

Best Answer chosen by Admin (Salesforce Developers) 
aballardaballard

That's not a valid use of outputText; you either need <apex:outputText escape=false value="{!Noticia__c.Contenido__c}"/> 

 

Or use apex:outputField, which should handled an RTF field without needing escape=false.