javascript - How to remove tags in Baidu ueditor
滿天的星座
滿天的星座 2017-05-19 10:20:44
0
2
611

Baidu's ueditor will automatically add P tags to the content. How to remove it? Nothing you can find online

滿天的星座
滿天的星座

reply all(2)
世界只因有你

Use jq, if you want to remove them all:

$("p").each(function(){
    var xx=$(this).html();
    $(this).replaceWith(xx);
 })
阿神

There is a corresponding method to obtain plain text: ueditor.getContentTxt()

The demo shows commonly used methods.

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!