gpt4 book ai didi

ios - 如何将html字符串保存到数据库中

转载 作者:搜寻专家 更新时间:2023-10-30 21:44:11 24 4
gpt4 key购买 nike

我有这个 html 字符串

<p><span style="color: #4f4f4f; font-family: Arial; font-size: 12px; font-style: normal; 
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height:
15.600000381469727px; orphans: 2; text-align: -webkit-left; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -
webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float:
none;">Numerical estimation is key in many craft and technical jobs where the ability to
quickly and accurately estimate material quantities is essential. The speed at which you can
answer these questions is the critical measure, as most people could achieve a very high sco
re given unlimited time in which to answer. You can therefore expect 25-35 questions in 10
minutes or so.</span></p>

我想将其存储在我的数据库中,但应用程序在执行查询时崩溃了。知道我是否应该删除任何特定的 symbol 或任何东西,或者是因为它的长度?

最佳答案

一般情况下,您应该执行SQL Escape操作。

关于ios - 如何将html字符串保存到数据库中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15786528/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com