The backend returns a string that includes (text, picture path, video path need to be wrapped with p tag, picture is displayed in img, video and video, how to deal with it)

the background returns a string that includes (text, picture path, video path need to be wrapped with p tag, picture is displayed in img, video and video, how to deal with it)

example: mention the Trident combination

https://ss2.baidu.com/6ONYsji.
https://ss2.baidu.com/6ONYsji.
last season, Liverpool"s Manet, Coutinho and the Philippines
https://ss2.baidu.com/6ONYsji.

turn effect

mention Trident combination


https://ss2.baidu.com/6ONYsji.; Fm=173&app=25&f=JPEG?w=218&h=146&s=DE9121C45F5318CC10C4F00403003091.png "/ >

Last season, Liverpool"s Manet, Coutinho and Fei


< video src=" https://ss2.baidu.com/6ONYsji.;>ideo>

Mar.06,2021

is this the problem of your backend design, blindly returning a string with no rules? Let the front end handle it blindly?


Please write down your development framework clearly, ordinary H5+JQ?
doesn't the json string given to you have a field name?


if the data source is backend, let the backend change it, pass it with json, design the field, or hit him. If not, first divide the structure (lexical analysis), determine the data type and then set the label.


at least a segmentation rule is required. For example, address tiredness begins with a fixed protocol. Ends with a space. Then write regular matching separation. If it is all in one group, it may be difficult to separate.

Menu