我得到 <br />
在我从数据库中加载值后,textarea 中的每个换行符
我尝试使用这些但它没有改变任何东西
nl2br($house_address);
有什么建议吗?
最佳答案
使用strip_tags
:
echo strip_tags($house_address);
关于php - 从数据库加载后如何从 textarea 中删除 <br/>?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21240876/