The OpenD Programming Language

Element.stripOut

Strips this tag out of the document, putting its inner html as children of the parent.

For example, given: <p>hello <b>there</b></p>, if you call stripOut on the b element, you'll be left with <p>hello there<p>.

The idea here is to make it easy to get rid of garbage markup you aren't interested in.

class Element
void
stripOut
()
out { assert (parentNode is null); assert (children.length == 0); }

Meta