Package DE_EPAGES::TLE::API::HtmlFormatter
TLE format handler for HTML texts. This handler supports the following formats:
- [html] escapes &'" with the resp. hex encoding (format &#HH;) or HTML entity
- [decodehtml] html vice versa
- [nohtml] all HTML tags, SCRIPT elements and STYLE elements are removed; multiple spaces are condensed into one
- [js] escapes \'" and all control chars with the resp. hex encoding (format \u00HH)
- [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
- [noscript] removes script 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 |
|