ad_html_text_convertible_p (public)
ad_html_text_convertible_p [ -from from ] [ -to to ]
Defined in packages/acs-tcl/tcl/text-html-procs.tcl
Returns true of ad_html_text_convert can handle the given from and to mime types.
- Switches:
- -from (optional)
- -to (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_html_text_convert
Source code: set valid_froms { text/enhanced text/markdown text/plain text/fixed-width text/html text/xml application/docbook+xml } set valid_tos { text/plain text/html } # Validate procedure input switch $from { "html" { set from text/html } "text" - "plain" - "pre" { set from text/plain } } switch $to { "html" { set to text/html } "text" - "plain" - "pre" { set to text/plain } } return [expr {$from in $valid_froms && $to in $valid_tos}]XQL Not present: Generic, PostgreSQL, Oracle