Unwrap plugin for jQuery

v 1.2

.unwrap() test

⇒ You should see 3 yellow paragraphs without a blue border, then a line of plain text, followed by 3 yellow paragraphs surrounded by a single blue border, and finally one yellow paragraph with no border.

Hello

cruel

world

Version 1.1 ensured that text nodes (like this) were not discarded.

Goodbye

cruel

world

.unwrapInner() test

⇒ You should see "Hello cruel world" in a single-width blue border, then "Goodbye", "cruel", and "world" each within a double-width border.  The absence of yellow background demonstrates that all <p> tags were replaced by their contents.

⇒ Below that, you should see the word "NoSpace" containing no line break or space between "No" and "Space" (which tests that an empty element is simply removed).

Hello

cruel

world

Goodbye

cruel

world

No

Space