HTML Formatting in outputText (Escape Attribute)
For applying styling to some of the content, outputText's escape attribute could be used. Example:-
<af:outputText value="<h2>ADF Tips and Tricks</h2>"/> <af:outputText value="<h2>ADF Tips and Tricks</h2>" escape="false"/>
Output
<h2>ADF Tips and Tricks</h2>
ADF Tips and Tricks
Note: You should avoid setting theescape
attribute tofalse
unless absolutely necessary.outputFormatted
component is more recommended in such cases.
No comments:
Post a Comment