我有这样的输入
$desc = <p>\r\n test job description!</p>
我用过echo html_entity_decode(nl2br($desc),ENT_NOQUOTES,"Utf-8");
输出变成 <p>\r\n test job description!</p>
然后用echo html_entity_decode(stripslashes(nl2br($desc)),ENT_NOQUOTES,"Utf-8");
& 拿到 <p> test job description!</p>
& 用于echo strip_tags(html_entity_decode(stripslashes(nl2br($desc)),ENT_NOQUOTES,"Utf-8"));
获取输出,test job description!
但输出变为<p> test job description!</p>
我在这里做错了什么或者我可以使用什么功能来获得所需的输出test job description!