util_expand_entities (public, deprecated)
util_expand_entities html
Defined in packages/acs-tcl/tcl/text-html-procs.tcl
Deprecated. Invoking this procedure generates a warning.
Replaces all occurrences of common HTML entities with their plaintext equivalents in a way that's appropriate for pretty-printing.
Currently, the following entities are converted: <, >, &apm;quot;, &, — and —.
This proc is more suitable for pretty-printing that its sister-proc,
util_expand_entities_ie_style
. The two differences are that this one is more strict: it requires proper entities i.e., both opening ampersand and closing semicolon, and it doesn't do numeric entities, because they're generally not safe to send to browsers. If we want to do numeric entities in general, we should also consider how they interact with character encodings.
- Parameters:
- html (required)
- See Also:
- ns_unquotehtml
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.