be7f6d4834
Prior to this change, all the line endings in the imported HTMLPurifier library were using CRLF (\r\n aka Windows style), but the HTMLPurifier source and also the downloadable artefacts use LF (\n aka Linux style) as line endings. This has been the case since510d190382when with the commit "MDL-38672 import HTML Purifier 4.5.0" all line endings were changed from LF to CRLF. There was no comment in the commit on why this change was done. As the original source uses LF, this commit partly reverts510d190382and goes back to LF as line endings. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
Core.LegacyEntityDecoder
|
|
TYPE: bool
|
|
VERSION: 4.9.0
|
|
DEFAULT: false
|
|
--DESCRIPTION--
|
|
<p>
|
|
Prior to HTML Purifier 4.9.0, entities were decoded by performing
|
|
a global search replace for all entities whose decoded versions
|
|
did not have special meanings under HTML, and replaced them with
|
|
their decoded versions. We would match all entities, even if they did
|
|
not have a trailing semicolon, but only if there weren't any trailing
|
|
alphanumeric characters.
|
|
</p>
|
|
<table>
|
|
<tr><th>Original</th><th>Text</th><th>Attribute</th></tr>
|
|
<tr><td>&yen;</td><td>¥</td><td>¥</td></tr>
|
|
<tr><td>&yen</td><td>¥</td><td>¥</td></tr>
|
|
<tr><td>&yena</td><td>&yena</td><td>&yena</td></tr>
|
|
<tr><td>&yen=</td><td>¥=</td><td>¥=</td></tr>
|
|
</table>
|
|
<p>
|
|
In HTML Purifier 4.9.0, we changed the behavior of entity parsing
|
|
to match entities that had missing trailing semicolons in less
|
|
cases, to more closely match HTML5 parsing behavior:
|
|
</p>
|
|
<table>
|
|
<tr><th>Original</th><th>Text</th><th>Attribute</th></tr>
|
|
<tr><td>&yen;</td><td>¥</td><td>¥</td></tr>
|
|
<tr><td>&yen</td><td>¥</td><td>¥</td></tr>
|
|
<tr><td>&yena</td><td>¥a</td><td>&yena</td></tr>
|
|
<tr><td>&yen=</td><td>¥=</td><td>&yen=</td></tr>
|
|
</table>
|
|
<p>
|
|
This flag reverts back to pre-HTML Purifier 4.9.0 behavior.
|
|
</p>
|
|
--# vim: et sw=4 sts=4
|