From ef6418b96bb7c99d0d457718fa063651e72f37fe Mon Sep 17 00:00:00 2001 From: shingchi Date: Fri, 8 Nov 2013 00:48:30 +0800 Subject: [PATCH] Update Markdown.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix script、iframe、object、embed --- var/Markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Markdown.php b/var/Markdown.php index 489ce022..f4043d96 100644 --- a/var/Markdown.php +++ b/var/Markdown.php @@ -178,7 +178,7 @@ class Markdown { $this->teardown(); - $text = preg_replace_callback("/<\/?(\!doctype|html|head|body|link|title|input|select|button|textarea|style|script|noscript|iframe|object|embed)[^>]*>/is", + $text = preg_replace_callback("/<\/?(\!doctype|html|head|body|link|title|input|select|button|textarea|style|noscript)[^>]*>/is", array(&$this, '_transform_callback'), $text); return $text . "\n";