lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi!

This:
                aString = string.gsub( aString, "&lt;", "<" )
                aString = string.gsub( aString, "&gt;", ">" )
                aString = string.gsub( aString, "&amp;", "&" )
                aString = string.gsub( aString, "&apos;", "'" )
                aString = string.gsub( aString, "&quot;", "\"" )
... isn't safe against stuff like &amp;apos;
The correction is fairly obvious. :)

Regards,
--Adam
--
Adam D. Moss   -   adam@gimp.org