Fix removal of on=... attributes from html generated from markdown
This commit is contained in:
parent
60a94dab22
commit
b525810c14
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ function ($match) { return escape($match[0]); },
|
|||
$description);
|
||||
}
|
||||
$description = preg_replace(
|
||||
'#(<[^>]+)on[a-z]*="?[^ "]*"?#is',
|
||||
'#(<[^>]+\s)on[a-z]*="?[^ "]*"?#is',
|
||||
'$1',
|
||||
$description);
|
||||
return $description;
|
||||
|
|
Loading…
Reference in a new issue