Fix cover's HTML-generation logic to escape ampersands in source code

Tom Moertel <>
Wed Jul 28 21:00:02 CEST 2010


[I'm resubmitting this patch since it never made it to the list the
first time around. --Tom]

When cover generates HTML files and embeds source code within them, it
does not escape ampersands in the source code.  These bare ampersands
get misinterpreted by web browsers as HTML character-entity
references; as a result, source code containing ampersands renders
improperly.  This small patch fixes the problem by causing bare
ampersands to be escaped into as "&" character-entity references.

git fetch git://github.com/tmoertel/otp.git fix_cover_html_escaping

It's a tiny patch, so I'm enclosing it, too.

Cheers,
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-cover-s-HTML-generation-logic-to-escape-ampersan.patch
Type: text/x-patch
Size: 1238 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20100728/6a35ee2a/attachment.bin>


More information about the erlang-patches mailing list