wiki.techinc.nl/tests/phpunit/includes/parser
Roan Kattouw ddb4913f53 Use Remex in Sanitizer::stripAllTags()
Using a real HTML tokenizer fixes bugs when < or > appear in attribute
values. The old implementation used delimiterReplace(), which didn't
handle this case:

    > print Sanitizer::stripAllTags( '<p data-foo="a&lt;b>c">Hello</p>' );
    c">Hello

We also can't use PHP's built-in strip_tags() because it doesn't handle
<?php and <? correctly:

    > print strip_tags('1<span class="<?php">2</span>3');
    1
    > print strip_tags('1<span class="<?">2</span>3');
    1

Bug: T179978
Change-Id: I53b98e6c877c00c03ff110914168b398559c9c3e
2017-11-15 17:31:31 -08:00
..
MagicVariableTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ParserIntegrationTest.php Use namespaced ScopedCallback 2016-10-17 15:46:05 -07:00
ParserMethodsTest.php Fix @covers for (non-integration) parser tests 2017-02-27 15:47:56 +11:00
ParserOptionsTest.php Remove ParserOptions::legacyOptions() and cleanup related code 2017-07-04 01:28:57 +00:00
ParserOutputTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ParserPreloadTest.php Fix @covers for (non-integration) parser tests 2017-02-27 15:47:56 +11:00
PreprocessorTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
SanitizerTest.php Use Remex in Sanitizer::stripAllTags() 2017-11-15 17:31:31 -08:00
TagHooksTest.php Wrap parser output in <div class="mw-parser-output"> 2017-05-08 05:32:03 +00:00
TidyTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00