Package DE_EPAGES::TLE::API::HtmlFormatter
TLE format handler for HTML texts. This handler supports the following formats:
- [html] "& are replaced by < > " and &
- [decodehtml] < > " and & are replaced by corresponding character codes.
- [nohtml] all HTML tags, SCRIPT elements and STYLE elements are removed; multiple spaces are condensed into one
- [js] escape for javascript: ' with \' and \ with \\
- [preline] html formatting and replaces new lines with <br />
- [uri] special characters are escaped as %XX
- [url] special characters are escaped as %XX, except '/'
- [urljsarray] split url into javascript join array to prevent indexing by search robots
- [color] used for color specification in CSS
- [correcthtml] closes any open left html tags to get a xhtml valid tag tree
- [nomedia] removes <img> tags
- [noactivemedia] removes object,embed,noembed,applet and script tags
- [noembed] removes object,embed,noembed and applet tags
Functions
DEFAULTFORMAT
Switches the default format to 'js'. This function is also used to switch the default formatting between <script ...></script> tags
Syntax |
#BLOCK("DEFAULTFORMAT", #Format) template #ENDBLOCK |
Example |
#LOCAL("Value", "<>'") #Value #BLOCK("DEFAULTFORMAT", "js") #Value #ENDBLOCK #ENDLOCAL |
Input |
|