Use Sanitizer::encodeAttribute instead of raw htmlspecialchars for encoding attribute...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Jul 2006 04:45:19 +0000 (04:45 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Jul 2006 04:45:19 +0000 (04:45 +0000)
commit0a41a6a1c36d96637a3793bfc460fb38784407fb
treed4e262c9bc2df6a5d707b498fd42d0468a11ced4
parent20949b0961f6fa9ba37acd3412036c5437046075
Use Sanitizer::encodeAttribute instead of raw htmlspecialchars for encoding attributes in Xml::element. This does two things:
* Preserves tabs and newlines as given (they would otherwise be normalized to spaces by the XML input processor)
* When generating output back to wiki text, this avoids line-based block parsing breakage. (bug 6577)
includes/Xml.php
maintenance/parserTests.txt