_acs-tcl__ad_html_to_text_anchor (private)
_acs-tcl__ad_html_to_text_anchor
Defined in packages/acs-tcl/tcl/test/html-conversion-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ set html { This is a text with an <a name='foo'>anchor</a> and a <a href='#foo'>reference</a> and an empty <a href="">href</a> and a regular <a href='https://openacs.org' title='OpenACS main site'>link</a>. } set result [ad_html_to_text -- $html] aa_log "<pre>$result</pre>" aa_true "contains link \[1\]" [string match {*\[1\]*} $result] aa_false "contains link \[2\]" [string match {*\[2\]*} $result] aa_true "contains link title" [string match {*OpenACS main site*} $result] }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "ad_html_to_text_anchor (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle