Decode HTML entities
Just to allow us to use HTML in the about section.
This commit is contained in:
parent
ac263e4230
commit
11ec813155
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user