mirror of
https://github.com/typecho/typecho.git
synced 2025-04-05 02:32:26 +02:00
Update Markdown.php
fix script、iframe、object、embed
This commit is contained in:
parent
4242c50e9a
commit
ef6418b96b
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user