DEV Community

Discussion on: How to replace arbitrary portions of HTML?

Collapse
 
ben profile image
Ben Halpern

Basically I want to replace the first half of the document, without concern for HTML elements or depth etc. Basically split the string in half and replace the first half with new HTML.

Collapse
 
pavelloz profile image
Paweł Kowalski

For some reason seems like a bad idea :)