Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
summernote clear format
var cleanText = $('#summernote').data().summernote.code()
.replace(/<\/p>/gi, "\n")
.replace(/<br\/?>/gi, "\n")
.replace(/<\/?[^>]+(>|$)/g, "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment