Add ENT_NOQUOTES to htmlspecialchars

There is no need to encode double quotes in HTML content.

Change-Id: If30adcf9196ecbfdfd1a9e21fa7b1c0bcd0e51d2
This commit is contained in:
Fomafix 2018-02-11 17:18:13 +01:00
parent 203c257894
commit c1c8bed584

View file

@ -113,7 +113,7 @@ class TemplateStylesContent extends TextContent {
protected function getHtml() {
$html = "";
$html .= "<pre class=\"mw-code mw-css\" dir=\"ltr\">\n";
$html .= htmlspecialchars( $this->getNativeData() );
$html .= htmlspecialchars( $this->getNativeData(), ENT_NOQUOTES );
$html .= "\n</pre>\n";
return $html;