I met now a strange behaviour (or normal and I didn't know about this?) in jQuery for the following code:
$("<p><div>item1</div></p>")
and the result is:
[<p></p>, <div>item1</div>, <p></p>]
Why last <p></p>
is added and where come from ?
` tags can't contain `
right from the div that have been added, to correct for the error
– myfunkyside Oct 14 '14 at 08:03