输出转义字符,PHP中输出转义JavaScript代码的实现代码

分享一下: 复制代码 代码如下:function jsformat($str) { $str = trim($str); $str = str_replace('\\s\\s', '\\s', $str); $str = str_replace(chr(10), '', $str); $str = str_replace(chr(13), '', $str); $str = str_replace... [阅读全文]
1 共1条 分1页