mediawiki-extensions-Discus.../tests/cases/en-big-oldparser
Bartosz Dziewoński 91e1bb15cc Use Sanitizer::stripAllTags() when generating notification snippets
It adds white-space between block tags and strips invisible tags.

It may be slightly slower (it takes HTML as input rather than DOM, so
we need to serialize the HTML first and then call it, rather than only
find and concatenate text nodes), but the difference is negligible,
and it seems better to use this method than to try to re-implement it.

Test runtime went from ~9.0s to ~9.5s locally, when testing using:
  php tests/phpunit/phpunit.php \
  extensions/DiscussionTools/tests/phpunit/ThreadItemTest.php \
  --filter getText

Bug: T219138
Change-Id: I0cb89ebd2160e1ef499b78573c6688f493a4c42f
2022-02-10 22:23:24 +01:00
..
en-big-oldparser-formattedreply.html Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
en-big-oldparser-getHTML.json Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
en-big-oldparser-getText.json Use Sanitizer::stripAllTags() when generating notification snippets 2022-02-10 22:23:24 +01:00
en-big-oldparser-modified-bullet.html Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
en-big-oldparser-modified.html Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
en-big-oldparser-reply.html Improve signature detection to handle formatting on the timestamp 2021-02-27 02:33:30 +01:00
en-big-oldparser.html Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
en-big-oldparser.json Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00