Decode HTML entities

Just to allow us to use HTML in the about section.
This commit is contained in:
Alexandre Teles 2016-08-22 14:50:34 -03:00 committed by GitHub
parent ac263e4230
commit 11ec813155
1 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ class pluginAbout extends Plugin {
$html .= '<label>'.$Language->get('Plugin label').'</label>';
$html .= '<input name="label" id="jslabel" type="text" value="'.$this->getDbField('label').'">';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>'.$Language->get('About').'</label>';
$html .= '<textarea name="text" id="jstext">'.$this->getDbField('text').'</textarea>';
@ -32,10 +31,10 @@ class pluginAbout extends Plugin {
$html = '<div class="plugin plugin-about">';
$html .= '<h2>'.$this->getDbField('label').'</h2>';
$html .= '<div class="plugin-content">';
$html .= nl2br($this->getDbField('text'));
$html .= html_entity_decode(nl2br($this->getDbField('text')));
$html .= '</div>';
$html .= '</div>';
return $html;
}
}
}