Re: Need help with interpreting ${?xml!}

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Thursday, February 14, 2008, 7:34:05 PM, CheeryChris wrote:

> I could not find info on freemarker manual to interpret what this
> Interpolation ${ variable?xml!}mean as used in the file shown below. Any
> thought is welcomed...

variable = get the value of the variable called "variable"
?xml     = escape it to be valid XML character data (& to &amp;, etc.)
!        = If the variable is missing, assume it's value is an empty string

-- 
Best regards,
 Daniel Dekany


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.