• Post Reply Bookmark Topic Watch Topic
  • New Topic

issue with h:outputText

 
Samik Mukherjee
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we know that hutputText prints the text on the browser output. What if the text itself contain html tags?

I am getting a String which looks something like this: "Hi <b>Guest</b>,<br> welcome to our agreement page.<br>"

When I show it through hutputText, it shows exactly the String including the html tags. How can I show it in the screen in the formatted way, i.e. the tags will not be shown, rather show like this:

Hi Guest,

welcome to our agreement page.

========================================

Any idea?
 
Arun Sudharsanam
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use escape="true" attribute in outputText like this:
<hutputText value="<b>Guest</b>" escape="true"/>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!