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
  • 572,413
  • 138
  • 1,043
  • 1,132
karansardana
  • 929
  • 2
  • 8
  • 7

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
  • 66,311
  • 27
  • 138
  • 208