ad_html_to_text (public)
ad_html_to_text [ -maxlen maxlen ] [ -showtags ] [ -no_format ] html
Defined in packages/acs-tcl/tcl/text-html-procs.tcl
Returns a best-guess plain text version of an HTML fragment. Parses the HTML and does some simple formatting. The parser and formatting is pretty stupid, but it's better than nothing.
- Switches:
- -maxlen (optional, defaults to
"70"
)- the line length you want your output wrapped to.
- -showtags (optional, boolean)
- causes any unknown (and uninterpreted) tags to get shown in the output.
- -no_format (optional, boolean)
- causes hyperlink tags not to get listed at the end of the output.
- Parameters:
- html (required)
- Authors:
- Lars Pind <lars@pinds.com>
- Aaron Swartz <aaron@swartzfam.com>
- Created:
- 19 July 2000
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- html_to_text, ad_html_to_text_bold, ad_html_to_text_anchor, ad_html_to_text_image, ad_html_to_text_clipped_link, text_to_html