Skip to content

Commit fa4fe00

Browse files
committed
fix: RemexCompatFormatter: Don't encode HTML entities in raw-text elements
wikimedia@fc5f211
1 parent 7c2f16e commit fa4fe00

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

includes/tidy/RemexCompatFormatter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ public function characters( SerializerNode $parent, $text, $start, $length ) {
5656
if ( $this->textProcessor !== null ) {
5757
$text = call_user_func( $this->textProcessor, $text );
5858
}
59+
60+
// Ensure a consistent representation for all entities
61+
$text = Sanitizer::normalizeCharReferences( $text );
5962
}
6063

61-
// Ensure a consistent representation for all entities
62-
$text = Sanitizer::normalizeCharReferences( $text );
6364
return $text;
6465
}
6566

0 commit comments

Comments
 (0)