The content edited by the background editor is output to the foreground. how can this problem be solved?
Source: Internet
Author: User
If the content edited by the background editor is output to the foreground, how can this problem be solved? for example, if a table div is edited in the background, if it is copied, it will inevitably miss a & lt; /div & gt; in this case, the output at the front end will be misplaced .. How can this problem be solved .. Should I add a fixed div to the front-end? how can I output the edited content in the background editor to the front-end? how can I solve this problem?
For example, if a table div is edited in the background, if it is copied, it will inevitably miss
In this case, the output at the front end will be misplaced ..
How can this problem be solved .. Should I add a fixed div to the front-end? how can I solve it?
------ Solution --------------------
If there are fewer tags, it will naturally be misplaced. It is fully written during editing. Is it hard to worry about this little thing?
------ Solution --------------------
Only data recording is allowed in the backend, not styles. after copying the data, no problem will occur.
------ Solution --------------------
Discussion
The customer copied it directly and did not know what tag he had lost.
Is there a way to control it?
------ Solution --------------------
Or you can encapsulate all the copied content in IFRAME, which will not affect the layout of the original webpage.
------ Solution --------------------
A background user only needs to input data and cannot care about the style in the user area (he doesn't have such a level !).
------ Solution --------------------
Add a regular expression to verify the content entered by the user. if the content does not comply with the rules, enter the content again.
<(? <外部标签名> [A-z] + [\ d]?) (? <属性> [^>] *) *> (? <内部代码 l> (<(? <内部标签名> [A-z] + [\ d]?) [^ <] *> .*? >|< [A-z] + [\ d]? [^>] *> | (?> [^ <] *) * (? = > ))?
Http://hi.baidu.com/gookings/blog/item/79728e45e384d634879473ec.html
------ Solution --------------------
Write a program to handle the problem.
------ Solution --------------------
Harmonious, that is, do not buy caidao
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.