Merge pull request #1103 from dennisverspuij/fix-on-in-markdown
Fix removal of on=... attributes from html (generated from markdown)
This commit is contained in:
commit
838ef8a6ec
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