[php]
<?php
function htmltojs($str){
$re='';
$str=str_replace('\','\\',$str);
$str=str_replace("'","'",$str);
$str=str_replace('"','"',$str);
$str=str_replace('t','',$str);
$str= split("rn",$str); //已分割成数组
for($i=0;$i<count($str);$i++){
$re.="document.writeln("".$str[$i]."");rn"; //加上js输出
}
return $re;
}
?>
[/php]
相关文章:
-
2021-11-19
-
2022-12-23
-
2022-12-23
-
2021-12-23
-
2021-11-12
-
2021-11-14
猜你喜欢
-
2022-02-09
-
2021-12-24
-
2022-01-10
-
2022-01-25
-
2022-02-11
-
2022-12-23
相关资源
-
下载
2021-06-05
-
下载
2023-01-27
-
下载
2023-02-11
-
下载
2023-03-17