1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 20:31:41 +02:00

Corrected toAttribute method. <select> item was not respecting attributes when using renderElement().

This commit is contained in:
Cameron
2016-04-14 16:32:48 -07:00
parent 04f7244f63
commit e4b9db6307
2 changed files with 23 additions and 5 deletions

View File

@@ -1984,7 +1984,6 @@ class e_parse extends e_parser
// Xhtml compliance.
$text = htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
if(!preg_match('/&#|\'|"|<|>/s', $text))
{
$text = $this->replaceConstants($text);
@@ -1992,7 +1991,7 @@ class e_parse extends e_parser
}
else
{
return '';
return $text;
}
}