Cernunnos Manual


${escape()}

Description:

Returns the specified EXPRESSION as-is, without checking for or evaluating nested phrases. This feature is useful for manipulating file types and syntaxes that also use '${}' delimiters for dynamic content ( e.g. pom.xml, build.xml, *.jsp).

Reagents:

Name XPath Description Reagent Type Expected Type Required
EXPRESSION descendant-or-self::text() An expression that may contain phrase delimiters ('${' and '}') that should not be evaluated for nested phrases. STRING java.lang.String Yes

Examples:

Echos text that would fail to parse without ${escape}:

 
       
        <echo-ln>${escape(This is ${some(text)} that ${includes} delimiters...)}</echo-ln>