Merge "CommentStore: Hard-deprecate newKey()"
[lhc/web/wiklou.git] / includes / tidy / RemexCompatFormatter.php
index 3dc727b..4e93382 100644 (file)
@@ -5,7 +5,6 @@ namespace MediaWiki\Tidy;
 use RemexHtml\HTMLData;
 use RemexHtml\Serializer\HtmlFormatter;
 use RemexHtml\Serializer\SerializerNode;
-use RemexHtml\Tokenizer\PlainAttributes;
 
 /**
  * @internal
@@ -19,9 +18,9 @@ class RemexCompatFormatter extends HtmlFormatter {
 
        public function __construct( $options = [] ) {
                parent::__construct( $options );
-               $this->attributeEscapes["\xc2\xa0"] = ' ';
+               $this->attributeEscapes["\u{00A0}"] = ' ';
                unset( $this->attributeEscapes["&"] );
-               $this->textEscapes["\xc2\xa0"] = ' ';
+               $this->textEscapes["\u{00A0}"] = ' ';
                unset( $this->textEscapes["&"] );
        }