Skip to content

Commit

Permalink
Merge pull request #1103 from dennisverspuij/fix-on-in-markdown
Browse files Browse the repository at this point in the history
 Fix removal of on=... attributes from html (generated from markdown)
  • Loading branch information
ArthurHoaro authored Mar 26, 2018
2 parents faa5b2c + b525810 commit 838ef8a
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 838ef8a

Please sign in to comment.