Baidu's ueditor will automatically add P tags to the content. How to remove it? Nothing you can find online
世界只因有你2017-05-19 10:22:44
Use jq, if you want to remove them all:
$("p").each(function(){
var xx=$(this).html();
$(this).replaceWith(xx);
})
阿神2017-05-19 10:22:44
There is a corresponding method to obtain plain text: ueditor.getContentTxt()
The demo shows commonly used methods.