]> granicus.if.org Git - cgit/commit
Properly escape ampersands inside HTML attributes
authorLukas Fleischer <cgit@cryptocrack.de>
Tue, 24 May 2011 18:38:40 +0000 (20:38 +0200)
committerLars Hjemli <hjemli@gmail.com>
Mon, 30 May 2011 21:55:19 +0000 (23:55 +0200)
commit69382320d96232ee8c73e664797da61e733c2427
tree7f1d53505859cc6e15b261249a22d1604b3cd037
parentec79265f2053e6dc20e0ec486719f5954d2be83d
Properly escape ampersands inside HTML attributes

Ampersands ("&") appearing inside HTML attributes need to be translated
to "&amp;". Otherwise, invalid XHTML will be generated at various
places, such as at tree views containing links to submodules.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
html.c