Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试用 php 抓取一些数据。将数据插入 mysql 表(xampp)时,appostrohe 看起来像这样 - '
我如何摆脱这个角色。
我使用了 addlashes 和 mysql_real_escape_string 并且我无法摆脱它。
我正在尝试用 php 抓取一些数据。将数据插入表格时,appostrohe 看起来像这样 - '
' 是撇号的正确 HTML。如果您从某人的网站上抓取,您将获得他们的 HTML,在这种情况下显然已正确转义。
'
htmlspecialchars_decode()如果要将 HTML 实体转换为纯文本,可以运行文本。
htmlspecialchars_decode()