【发布时间】:2017-10-28 18:54:35
【问题描述】:
我在 JSON 中有 HTML 标记和实体,我不知道如何在我的应用程序中显示它。我尝试删除新行,尝试解码 html 实体,但没有任何效果。
以下是我拥有的 JSON 示例:
{"Jobdesc":[{"jobid":"12281","job_title":"IOS Developer for Noida Location Job","job_desc":"<p><strong>Job Description</strong><br />
Dear Candidate&nbsp;<br />
I have an opening for IOS Developer for Noida Location for leading IT company. pli\ease find the JD below-<br />
JOB DESCRIPTION :-<br />
Industry :- IT&nbsp;<br />
Experience :- Min 1 Year<br />
Position :- IOS Developer<br />
Location :- Noida<br />
&nbsp;<br />
<strong>Job Responsibility :-&nbsp;</strong><br />
&nbsp;<br />
Design and build advanced applications for the iOS platform<br />
Collaborate with cross-functional teams to define, design, and ship new features</p>
<p>Working experience in iOS development<br />
Have published one or more iOS apps in the app store<br />
A deep familiarity with Objective-C and Cocoa Touch<br />
Experience working with iOS frameworks such as Core Data, Core Animation, Core Graphics and Core Text<br />
&nbsp;If you are interested in the above mentioned JD kindly share your resume with me and contact me on :-<br />
&nbsp;<br />
Thanks And Regards<br />
Pal Mittal<br />
Contact no :- 9200272001<br />
Email ID :- parul@india-shine.in<br />
&nbsp;<br />
&nbsp;<br />
Functional Area: Web / Mobile Technologies&nbsp;<br />
Industry: IT - Software&nbsp;<br />
Skills: IOS ipad&nbsp;<br />
Other Skills: IOS Developer Iphone Developer IOS Application Developer iphone Application Developer iphone<br />
&nbsp;<br />
Recruiter details&nbsp;<br />
Company Name: Employment Solution<br />
Email: pal@ishine.in<br />
Telephone: 9200272001</p>
","job_role":"IOS Developer","job_exp":"1-4 year","job_education":"MCA","job_location":"Delhi","job_address":"Delhi","j ob_company_name":"India Shine Employment Solution","job_company_url":"www.india- shine.in","job_company_email":"kumar178dilip@gmail.com","job_status":""}]}
【问题讨论】:
-
实际上不可能使用上面的 json,因为没有解析器能够解析这个.. 例如
br /任何解析器如何识别它是一个中断标记 -
@Sharpkits 是的!我有太多这样的 JSON 响应,我想我以某种方式管理其中的许多,通过编码和解码 html 实体,现在应该做什么?我可以在其中使用异常处理吗?
-
您能否提供更多关于您能够解析多少的详细信息?以及您希望显示的输出显示是什么
标签: html ios objective-c json