Ns quotehtml
Jump to navigation
Jump to search
Man page: http://aolserver.com/docs/tcl/ns_quotehtml.html
NAME
- ns_quotehtml - Escape HTML characters so they appear as-is in HTML pages
SYNOPSIS
- ns_quotehtml html
DESCRIPTION
- Returns the contents of html with certain characters that are special in HTML replaced with an escape code. This allows text displayed in a webpage that might otherwise be interpreted as containing HTML markup instructions to be interpreted as literal characters to be displayed. Specifically:
- < becomes <
- > becomes >
- & becomes &
- ' becomes '
- " becomes "
- All other characters are unmodified in the output.
EXAMPLES
% ns_quotehtml "Hello World!" Hello World!
% ns_quotehtml "The tag is used to indicate strongly emphasized text." The <STRONG> tag is used to indicate strongly emphasized text.
% ns_quotehtml { }
<td id='cell_1_2' class="red"> </td>
NOTES
- The set of characters that are substituted and their replacements may be different in previous versions of AOLserver. For example, AOLserver 2.x does not escape single or double-quotes.