【发布时间】:2015-06-16 18:52:27
【问题描述】:
我使用contenteditable 作为文本输入,我想在用户点击“提交”时显示(在不同的 div 上)文本输入。
假设用户类型:
hello
hello
我检查一下
$('.answer_comments_editable').html();
然后我得到"hello<div>hello</div>"。
我不想在最终显示中显示任何 html 标记,那么如何避免这种情况,而是显示干净的文本?
【问题讨论】:
标签: html contenteditable