mediawiki-extensions-Discus.../includes
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
..
Actions Injected SubscriptionStore into UnsubscribeAction 2021-08-09 22:38:52 +00:00
Hooks Merge "Replace use of deprecated OutputPage::enableClientCache( false )" 2022-02-10 07:01:26 +00:00
Notifications Remove DiscussionToolsEnableTopicSubscriptionBackend config 2022-02-04 18:22:10 +00:00
ApiDiscussionToolsCompare.php Add discussiontoolscompare API 2022-02-08 15:53:27 +00:00
ApiDiscussionToolsEdit.php Remove DiscussionToolsEnableTopicSubscriptionBackend config 2022-02-04 18:22:10 +00:00
ApiDiscussionToolsGetSubscriptions.php Remove DiscussionToolsEnableTopicSubscriptionBackend config 2022-02-04 18:22:10 +00:00
ApiDiscussionToolsPageInfo.php Add discussiontoolscompare API 2022-02-08 15:53:27 +00:00
ApiDiscussionToolsSubscribe.php Remove DiscussionToolsEnableTopicSubscriptionBackend config 2022-02-04 18:22:10 +00:00
ApiDiscussionToolsTrait.php Add discussiontoolscompare API 2022-02-08 15:53:27 +00:00
CommentFormatter.php Use class list everywhere for adding/checking CSS classes 2022-01-24 18:40:00 +01:00
CommentItem.php Use Sanitizer::stripAllTags() when generating notification snippets 2022-02-10 22:23:24 +01:00
CommentModifier.php Improve CommentModifier::addReply() API for re-use and testing 2022-02-03 21:12:48 +00:00
CommentParser.php Don't count leading/trailing whitespace against signature scan limit 2022-02-04 19:35:29 +00:00
CommentUtils.php Fix some typos in comments 2022-02-04 20:36:28 +01:00
Data.php Allow more flexible overrides for the terms-of-use messages 2021-10-05 17:58:37 +02:00
HeadingItem.php Prevent assertion failure caused by empty headings 2022-01-20 18:56:32 +00:00
ImmutableRange.php Add Range::compareBoundaryPoints 2021-12-17 00:55:00 +00:00
NodeFilter.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
ServiceWiring.php Move user subscription limit to config 2021-12-16 21:07:40 +01:00
SpecialTopicSubscriptions.php Add Special:TopicSubscriptions 2021-10-06 20:06:01 +00:00
SubscriptionItem.php Add missing typehints 2021-12-01 14:57:09 +00:00
SubscriptionStore.php Merge "Change auto topic subs to re-subscribe you if you unsubscribed" 2021-12-17 15:32:40 +00:00
ThreadItem.php Use Sanitizer::stripAllTags() when generating notification snippets 2022-02-10 22:23:24 +01:00
TopicSubscriptionsPager.php Merge "TopicSubscriptions: Rename 'actions' column and unframe button" 2021-10-28 21:05:43 +00:00
TreeWalker.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00