strip outerHTML from html string
Hi,
Considering I have a HTML string like this:
- <span><span><div>this text</div></span></span>
I want to get the left side of the outerHTML as a string as well as the right side:
- var leftSide= <span><span><div>;
- var rightSide= </div></span></span>;
Is there a way to do this?
Regards.