Update Markdown.php

fix script、iframe、object、embed
This commit is contained in:
shingchi 2013-11-08 00:48:30 +08:00
parent 4242c50e9a
commit ef6418b96b

View File

@ -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";