|
|
|
Samples SamplesXml Code Config API Docs Download Neolectric |
|
Html Encoding<dxp:HtmlEncode value="${content}" store="htmlcontent"/>
Display htmlcontent
<table border="0">
<tr bgcolor="#ffffee" ><td align="left">${htmlcontent}</td></tr>
</table>
Original contentConverted contentFootnote:The dxp:HtmlEncode tag (request param to html) uses the HtmlSyntax class to convert urls that begin with http, htts, ftp to hyperlinks. It also tries to convert items that "appear" to be email addresses into "mailto" hyperlinks. This is not foolproof.
You may find a regular expression that you want to use instead of HtmlSyntax or you could modify the class to your liking. |