diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-03-26 18:55:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 18:55:41 +0200 |
commit | 838ef8a6ec140bd21124258e584be220be55048f (patch) | |
tree | b4e52aac3db76526ea0f5778f1d35ffe332c54c3 /plugins/markdown/markdown.php | |
parent | faa5b2ce61ddc871eab2919f92d683c917730b10 (diff) | |
parent | b525810c14a5602f11949a40529f6a809c29b679 (diff) | |
download | Shaarli-838ef8a6ec140bd21124258e584be220be55048f.tar.gz Shaarli-838ef8a6ec140bd21124258e584be220be55048f.tar.zst Shaarli-838ef8a6ec140bd21124258e584be220be55048f.zip |
Merge pull request #1103 from dennisverspuij/fix-on-in-markdown
Fix removal of on=... attributes from html (generated from markdown)
Diffstat (limited to 'plugins/markdown/markdown.php')
-rw-r--r-- | plugins/markdown/markdown.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 6b4aabf3..2f24e417 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php | |||
@@ -288,7 +288,7 @@ function sanitize_html($description) | |||
288 | $description); | 288 | $description); |
289 | } | 289 | } |
290 | $description = preg_replace( | 290 | $description = preg_replace( |
291 | '#(<[^>]+)on[a-z]*="?[^ "]*"?#is', | 291 | '#(<[^>]+\s)on[a-z]*="?[^ "]*"?#is', |
292 | '$1', | 292 | '$1', |
293 | $description); | 293 | $description); |
294 | return $description; | 294 | return $description; |