7

How can we go about making some of the words in a sentence appear in BOLD

for example - I'm trying to put one of the words of a sentence in BOLD i.e.

sentence is "please select the amount"

amount should be in BOLD, and now, when I use

message = "please select the <b>amount </b>" 

This doesn't work. It simply shows

please select the <b>amount </b>.

How can I get this to work?

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
karansardana
  • 1,039
  • 2
  • 9
  • 8

1 Answers1

24

Setting the escape attribute to false allows you to insert html tags

<h:outputText escape="false" value="please select the <b>amount</b>"/>
stacker
  • 68,052
  • 28
  • 140
  • 210