Browse Source

Merge pull request #1103 from dennisverspuij/fix-on-in-markdown

 Fix removal of on=... attributes from html (generated from markdown)
ArthurHoaro 6 năm trước cách đây
mục cha
commit
838ef8a6ec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plugins/markdown/markdown.php

+ 1 - 1
plugins/markdown/markdown.php

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