Jquery: How To Remove All Html Tags Except Br And Img In Div
How do I delete all HTML tags except
and
in DIV Contenteditable, when I'm writing inside So far i am
in DIV Contenteditable, when I'm writing inside So far i am
Solution 1:
try this, that will remove any child of #aa if that child isn't a br or an img
$("#aa").children().not("br, img").remove()
Post a Comment for "Jquery: How To Remove All Html Tags Except Br And Img In Div"