commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Michel FRANCOIS <...@mururoa.com>
Subject Re: RE : RE : [jelly] SetTag and XML entities
Date Tue, 25 Jan 2005 16:59:48 GMT
> And with :
> 
>  <j:file name="myFile" omitXmlDeclaration="true" escapeText="false">
>  <j:set var="test" escapeText="false">a&lt;b &amp;&amp; c&gt;d</j:set>
>  if ( ${test} )
>  </j;file>
> 
> set inherits from tagSupport, which accepts escapeText as filetag.
> 
In that case the escapeText attribute with a value of false do nothing
and with a value of true will output for the above code:
if ( a&amp;lt;b &amp;amp;&amp;amp; c&amp;gt;d )
Actually, it permits to convert XML characters to entities. In our case,
the XML character is '&' which becomes '&amp;'.




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message