查找并替换<;p>;在MySQL中使用返回键条目
我刚刚实现了查找并替换<;p>;在MySQL中使用返回键条目,mysql,phpmyadmin,Mysql,Phpmyadmin,我刚刚实现了nl2br(htmlspecialchars(…)来显示用户输入的MySQL数据。令人恼火的是,在我了解nl2br之前,各种帖子中到处都是标记。有没有快速扫描MySQL的方法(我使用php myAdmin)并将替换为nl2br拾取的返回键条目?其中一列中只有标记。谢谢 编辑:一个例子 ...d the wood on the front car is cracked - it has stood the test of time very well. <p> For s
nl2br(htmlspecialchars(…
)来显示用户输入的MySQL数据。令人恼火的是,在我了解nl2br
之前,各种帖子中到处都是标记。有没有快速扫描MySQL的方法(我使用php myAdmin)并将
替换为nl2br拾取的返回键条目?其中一列中只有标记。谢谢
编辑:一个例子
...d the wood on the front car is cracked - it has stood the test of time very well.
<p>
For such an ancient coaster, it affords a surprisingly good ride – this relic can still deliver..
…d前车的木头裂了——它很好地经受了时间的考验。
对于这样一个古老的过山车,它提供了一个令人惊讶的好乘坐-这个遗迹仍然可以提供。。
因此,应该删除
,并用空行替换根据您的示例,元素不是必需的。它们可以与\n
一起使用:
UPDATE yourTable SET theColumn = REPLACE(theColumn, '<p>', '\n')
updateyourtable设置column=REPLACE(列“”,“\n”)
在您的示例中,
元素不是必需的。它们可以与\n
一起使用:
UPDATE yourTable SET theColumn = REPLACE(theColumn, '<p>', '\n')
updateyourtable设置column=REPLACE(列“”,“\n”)
您是否有一个条目示例以及您想要替换的内容?@FreshPrinceOfSO使用示例进行编辑您是否有一个条目示例以及您想要替换的内容?@FreshPrinceOfSO使用示例进行编辑