stblog 中的preg_replace() 错误要怎么更改
遇见这样的错误要怎么更改
我这样替换正常~~
/** 锁定标签 */ $string = preg_replace_callback("/<(" . self::LOCKED_HTML_TAG . ")[^>]*>.*?<\/\\1>/is", array('Common', '__lock_html'), $string);
$string = preg_replace_callback("/\s*<(" . self::ELEMENT_HTML_TAG . ")([^>]*)>(.*?)<\/\\1>\s*/is",
function($r){return "str_replace('\\\"', '\"', '<$r$r>' . Common::cut_paragraph(trim('$r'), false) . '</$r>')";}, $string);
$string = preg_replace_callback("/<(" . self::ESCAPE_HTML_TAG . '|' . self::LOCKED_HTML_TAG . ")([^>]*)>(.*?)<\/\\1>/is",
function($m){return "str_replace('\\\"', '\"', '<$r$r>' . str_replace(array(\"\r\", \"\n\"), '', '$r') . '</$r>')";}, $string);
$string = preg_replace("/<(" . self::GRID_HTML_TAG . ")([^>]*)>(.*?)<\/\\1>/is", "\n\n<\\1\\2>\\3</\\1>\n\n", $string);
页:
[1]