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:
ArthurHoaro 2018-03-26 18:55:41 +02:00 committed by GitHub
commit 838ef8a6ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,7 +288,7 @@ function ($match) { return escape($match[0]); },
$description); $description);
} }
$description = preg_replace( $description = preg_replace(
'#(<[^>]+)on[a-z]*="?[^ "]*"?#is', '#(<[^>]+\s)on[a-z]*="?[^ "]*"?#is',
'$1', '$1',
$description); $description);
return $description; return $description;