betweenGo

Display formatted HTML text

by Frank Kim 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/Bookmark

Related posts:

  1. Accessing RepositoryItems with JSTL
  2. Trim White Space from JSP
  3. Getting the request parameter
  4. Size of collection in a JSP/DSP page
  5. ATG ForEach Output with Separators Between Items

:, , ,

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!