ad_text_to_html (public)
ad_text_to_html [ -no_links ] [ -no_lines ] [ -no_quote ] \ [ -includes_html ] [ -encode ] text
Defined in packages/acs-tcl/tcl/text-html-procs.tcl
Converts plaintext to html. Also translates any recognized email addresses or URLs into a hyperlink.
- Switches:
- -no_links (optional, boolean)
- will prevent it from highlighting
- -no_lines (optional, boolean)
- -no_quote (optional, boolean)
- will prevent it from HTML-quoting output, so this can be run on semi-HTML input and preserve that formatting. This will also cause spaces/tabs to not be replaced with nbsp's, because this can too easily mess up HTML tags.
- -includes_html (optional, boolean)
- Set this if the text parameter already contains some HTML which should be preserved.
- -encode (optional, boolean)
- This will encode international characters into its html equivalent, like "ü" into ü
- Parameters:
- text (required)
- Authors:
- Branimir Dolicki <branimir@arsdigita.com>
- Lars Pind <lars@pinds.com>
- Created:
- 19 July 2000
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_text_to_html, xowiki_test_cases, create_form_with_form_instance