Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 字符奇怪的html_Php_Html - Fatal编程技术网

Php 字符奇怪的html

Php 字符奇怪的html,php,html,Php,Html,好的,也许是一个简单的问题,但我正在从wordpress的自定义帖子生成一个xml,问题是acf的一个textarea字段,我在这里放了一个换行符,代码生成给我这个字符

好的,也许是一个简单的问题,但我正在从wordpress的自定义帖子生成一个xml,问题是acf的一个textarea字段,我在这里放了一个换行符,代码生成给我这个字符


,但无法删除该字符

这是我的实际代码

str_replace('&#13;', '', str_replace('<br />', '', strip_tags($addressValue['c_restaurant_map_address'], '<br /><br/><br>')));
str#u replace('
;','',str#u replace('
','',strip_标签($addressValue['c#u restaurant_map_address'],'

);
请参见旁白,
str#u replace
将接受一个字符数组,因此您可以在一个数组中完成所有替换:
str#u replace(['
'、'
'、' ;']、'.$target)
…您可能对
html\u entity\u decode()感兴趣。
:谢谢,我想我可以解决这个问题:D