aboutsummaryrefslogtreecommitdiffstats
path: root/includes/CommentFormatter
diff options
context:
space:
mode:
Diffstat (limited to 'includes/CommentFormatter')
-rw-r--r--includes/CommentFormatter/CommentParser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/CommentFormatter/CommentParser.php b/includes/CommentFormatter/CommentParser.php
index 802f2e93dd5d..455d714f89fc 100644
--- a/includes/CommentFormatter/CommentParser.php
+++ b/includes/CommentFormatter/CommentParser.php
@@ -13,6 +13,7 @@ use MediaWiki\HookContainer\HookRunner;
use MediaWiki\Linker\Linker;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Linker\LinkTarget;
+use MediaWiki\Parser\Sanitizer;
use MediaWiki\Title\MalformedTitleException;
use MediaWiki\Title\NamespaceInfo;
use MediaWiki\Title\Title;
@@ -172,7 +173,7 @@ class CommentParser {
$comment = strtr( $comment, "\n\x1b", " " );
// Allow HTML entities (for T15815)
if ( !$unsafe ) {
- $comment = \Sanitizer::escapeHtmlAllowEntities( $comment );
+ $comment = Sanitizer::escapeHtmlAllowEntities( $comment );
}
if ( $enableSectionLinks ) {
$comment = $this->doSectionLinks( $comment, $selfLinkTarget, $samePage, $wikiId );