Merge pull request #327 from alexandreteles/patch-1

Decode HTML entities
This commit is contained in:
Diego Najar 2016-08-22 21:12:24 +02:00 committed by GitHub
commit 940563a434
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,7 +31,7 @@ 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>';