mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
fix various html parse errors
This commit is contained in:
parent
bef7a5d66b
commit
01164c8c2f
6 changed files with 42 additions and 15 deletions
|
@ -3041,6 +3041,8 @@ class HTML5_TreeBuilder {
|
|||
|
||||
if (!empty($token['attr'])) {
|
||||
foreach($token['attr'] as $attr) {
|
||||
// mike@macgirvin.com 2011-10-21, stray double quotes cause everything to abort
|
||||
$attr['name'] = str_replace('"','',$attr['name']);
|
||||
if(!$el->hasAttribute($attr['name'])) {
|
||||
$el->setAttribute($attr['name'], $attr['value']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue