template::data::validate::nomarkup (public)

 template::data::validate::nomarkup value_ref message_ref

Defined in packages/acs-templating/tcl/data-procs.tcl

Checks if supplied string contains markup.

Parameters:
value_ref (required)
message_ref (required)
Author:
Guenter Ernst

Partial Call Graph (max 5 caller/called nodes):
%3 _ _ (public) ad_looks_like_html_p ad_looks_like_html_p (public) template::data::validate::nomarkup template::data::validate::nomarkup template::data::validate::nomarkup->_ template::data::validate::nomarkup->ad_looks_like_html_p

Testcases:
No testcase defined.
Source code:
    upvar 2 $message_ref message $value_ref value element element

    if { [ad_looks_like_html_p $value] } {
        if {[info exists element(label)]} {
            set name $element(label)
        } else {
            set name $element(name)
        }
        set message [_ acs-tcl.lt_Value_for_name_contai [list name '$name']]
        return 0
    } else {
        return 1
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: