KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am wondering if it is possible to remove a tag but leave the content intact? For example, is it possible to remove the SPAN tag but leave SPAN's content there? <p>The weather is sure <span>sunny</span> today</p> //original <p>The weather is sure sunny today</p> //turn it into this I have tried using this method of using replaceWith() , but it turned the HTML into <p> "The weather is sure " "sunny" " today" </p>
Tags (comma-separated)
Save Edits
Cancel