首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >描述较大时无法解析xml数据

描述较大时无法解析xml数据
EN

Stack Overflow用户
提问于 2017-08-25 12:17:22
回答 1查看 27关注 0票数 0

在我的项目脚本中,它总是运行得很流畅,但只有当描述是这样时,它才会给出"Unable to parse error“。或者如果存在大量的特殊字符,则也会出现这样的错误。我已经处理了基本的特殊字符。如果你能告诉我这个描述的问题是什么,那就太好了,因为它总是给出这个错误。

代码语言:javascript
运行
复制
$description = "hi every one
now i will tell you what i want exactly
i want Development script for upload and sharing files like mediafire and mega 
i will tell you about every details what i need 
the websit or script will be dedicated to upload files, Whether been videos or photos or psd or pdf or mp3 every thing, i want members system in       the script, will be there normal members and premium members, premium members will be have more features more than normal member, you can see difference between them in this picture 
there are other things i want it in script 
like Control Panel for members and Control Panel  for admin 
contact us page, terms page & other pages like that 
linking the website in my account on Paypal to receive the money on him
this is the important things so i want tell me how much exactly will cost script like this"


<Leads>
<row no="1">
<FL val="Name">'XYZ'</FL>
<FL val="Email">'XYZ@ABC.COM'</FL>
<FL val="Country">'NEW JERSEY'</FL>
<FL val="Description">'.$description.'</FL>
</row>
</Leads>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-25 13:07:51

在脚本中使用CDATA。

代码语言:javascript
运行
复制
<FL val="Description"><![CDATA['.$description.']]]]></FL>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45874369

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档