mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-24 00:06:06 +00:00
Add ENT_NOQUOTES to htmlspecialchars
There is no need to encode double quotes in HTML content. Change-Id: If30adcf9196ecbfdfd1a9e21fa7b1c0bcd0e51d2
This commit is contained in:
parent
203c257894
commit
c1c8bed584
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue