aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/markdown
diff options
context:
space:
mode:
authorDennis Verspuij <dennisverspuij@users.noreply.github.com>2018-03-19 10:01:20 +0000
committerDennis Verspuij <dennisverspuij@users.noreply.github.com>2018-03-19 10:01:20 +0000
commitb525810c14a5602f11949a40529f6a809c29b679 (patch)
treec1a2431987f8bb6442fce60e96d98f96578ee349 /plugins/markdown
parent60a94dab22b6ff1fe414ba98b90dbaaf741cadef (diff)
downloadShaarli-b525810c14a5602f11949a40529f6a809c29b679.tar.gz
Shaarli-b525810c14a5602f11949a40529f6a809c29b679.tar.zst
Shaarli-b525810c14a5602f11949a40529f6a809c29b679.zip
Fix removal of on=... attributes from html generated from markdown
Diffstat (limited to 'plugins/markdown')
-rw-r--r--plugins/markdown/markdown.php2
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;