KyaPoocha.com

Huge Collection of Interview Questions


How to print out html markup with h:outputText? 

The h:outputText has attribute escape that allows to escape the html markup. By default, it equals to “true”. It means all the special symbols will be replaced with ‘&’ codes. If you set it to “false”, the text will be printed out without ecsaping.For example, <h:outputText value="<b>This is a text</b>"/>
 

will be printed out like:

     <b>This is a text</b>

In case of <h:outputText escape="false" value="<b>This is a     text</b>"/>

you will get:

This is a text



If you liked this question/asnwer, make sure you
Subscribe to KyaPoocha.com RSS feed!


BOOKMARK THIS : BlinkList | del.icio.us | Digg it | Furl | reddit | StumbleUpon | Yahoo MyWeb |