GNU bug report logs - #12228
24.2.50; xml-escape-string doesn't escape < and &

Previous Next

Package: emacs;

Reported by: Marco Minutoli <mminutoli <at> gmail.com>

Date: Sat, 18 Aug 2012 17:58:02 UTC

Severity: normal

Found in versions 24.1.50, 24.2.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 12228 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Marco Minutoli <mminutoli <at> gmail.com>
Cc: 12228 <at> debbugs.gnu.org
Subject: Re: bug#12228: 24.2.50; xml-escape-string doesn't escape < and &
Date: Sun, 19 Aug 2012 14:52:04 +0800
Marco Minutoli <mminutoli <at> gmail.com> writes:

> (xml-escape-string "<>&\"")
>   -> "<&gt;&&quot;"
>
> while it should be:
>   -> "&lt;&gt;&amp;&quot;"

Fixed in trunk, thanks.




This bug report was last modified 12 years and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.