与移动端对接时需要将文章各元素拆分成数组,如何实现?

WBOY
Release: 2016-06-06 20:08:09
Original
2004 people have browsed it

目前网站的日志功能是将正文中的文字与图片放在一个字段(content)里入库的,与移动端对接时直接将(content)发送给安卓/IOS端,移动端无法解析IMG标签,直接把IMG标签显示出来了。图片是在文章中的位置是随机的,我该如何处理发送给移动端的这个(content)?

回复内容:

目前网站的日志功能是将正文中的文字与图片放在一个字段(content)里入库的,与移动端对接时直接将(content)发送给安卓/IOS端,移动端无法解析IMG标签,直接把IMG标签显示出来了。图片是在文章中的位置是随机的,我该如何处理发送给移动端的这个(content)?

移动端直接通过WebView展示如何,你的内容是纯html吗?还是直接处理的格式?

Mather正则过滤

Jsoup解析不行吗?

富文本通用格式不用html吗

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!