Skip to content

Commit

Permalink
Fix removal of on=... attributes from html generated from markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisverspuij committed Mar 19, 2018
1 parent 60a94da commit b525810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/markdown/markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b525810

Please sign in to comment.