Hi,
The current routines for escaping XML in awful.util.[escape/unescape]
are not too good, both in terms of performance and accuracy. They use
multiple gsubs, generating a new string each time, which is instantly
discarded and must then be garbage-collected, etc.
Also they fail in some situations:
> return unescape(escape("<amp;"))
<amp;
> return awful.util.unescape("&quot;");
"
etc.
Patch here: http://matthewwild.co.uk/projects/code/awful-xml-escaping.patch
Regards,
Matthew.
--
To unsubscribe, send mail to [email protected].