[Nitro] Nitro creating invalid XML

James Britt james_b at neurogami.com
Wed Feb 1 11:33:00 EST 2006

Bryan Soto wrote:

> Hi James,
> You can see what Nitro does if you look at 
> nitro/lib/nitro/compiler/morphing.rb. Nitro calls 
> REXML::Document.parse_stream which converts the & to & and then 
> calls the text callback, which simply adds it to the buffer. Perhaps we 
> should be doing some entity escaping in the text callback?

Yes.   '<' and '&' in plain text, where the ampersand is not part of 
some entity reference.

James Britt

"Blanket statements are over-rated"

More information about the Nitro-general mailing list