Saved content contains HTML code, which causes layui to render abnormally

User feedback came up with a problem, page data. Originally 10, there will be 2 more, and the page is strange. As shown in the figure below
insert image description here
, after investigation, it was found that the HTML code was stored in one of the fields, causing layui to render it and the original style was destroyed.
insert image description here
Content data:
insert image description here
It is normal to delete this content. In order to avoid this situation from happening again, it is generally necessary to perform content verification on the front end, or store and transcode

Guess you like

Origin blog.csdn.net/RoyRaoHR/article/details/121763509