betweenGo

Display formatted HTML text

by on Aug.12, 2008, under JSTL, Page Development

In DSP to display formatted HTML text you use the valueishtml converter attribute.  For example:

<dspel:valueof param="displayName" valueishtml="true"/>

For example “foo &amp; bar” becomes “foo & bar”.

In JSTL to do this you tell JSTL not to escape the XML.  For example:

<c:out value="${displayName}" escapeXml="false" />


Share

Related posts:

  1. Upgrading to JSTL 1.1
  2. Get JSTL Vars from PageContext
  3. Trim White Space from JSP
  4. Submitting an ATG Form Using a Text Link
  5. Size of collection in a JSP/DSP page

:, , ,

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!