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 .= '<label>'.$Language->get('Plugin label').'</label>';
|
||||||
$html .= '<input name="label" id="jslabel" type="text" value="'.$this->getDbField('label').'">';
|
$html .= '<input name="label" id="jslabel" type="text" value="'.$this->getDbField('label').'">';
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
|
||||||
$html .= '<div>';
|
$html .= '<div>';
|
||||||
$html .= '<label>'.$Language->get('About').'</label>';
|
$html .= '<label>'.$Language->get('About').'</label>';
|
||||||
$html .= '<textarea name="text" id="jstext">'.$this->getDbField('text').'</textarea>';
|
$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 = '<div class="plugin plugin-about">';
|
||||||
$html .= '<h2>'.$this->getDbField('label').'</h2>';
|
$html .= '<h2>'.$this->getDbField('label').'</h2>';
|
||||||
$html .= '<div class="plugin-content">';
|
$html .= '<div class="plugin-content">';
|
||||||
$html .= nl2br($this->getDbField('text'));
|
$html .= html_entity_decode(nl2br($this->getDbField('text')));
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue