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
(boolean) (optional)- will prevent it from highlighting
- -no_lines
(boolean) (optional)- -no_quote
(boolean) (optional)- 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
(boolean) (optional)- Set this if the text parameter already contains some HTML which should be preserved.
- -encode
(boolean) (optional)- This will encode international characters into its html equivalent, like "ü" into ü
- Parameters:
- text
- 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