When a JSP is converted into HTML by the page compiler, all values provided by DSP tags are automatically enclosed in escape tags so they are treated as non-HTML code. This means that text is rendered as raw text:
This is how you code a word to appear <b>bold</b>.
rather than formatted HTML:
This is how you code a word appear bold.
In most circumstances, you want tag values to be displayed as literal text. However, when you want a tag value to appear as formatted HTML code, use the valueishtml
tag converter. This tag converter accepts a Boolean value.
<dsp:param name="boldCode" value="<b>bold</b>"/>
Bold text looks <dsp:valueof param="boldCode" valueishtml="true"/>.
In a browser, this tag displays as follows:
Bold text looks bold.