Remove P with Jquery

2

I have a part of the site that is manageable, and this manager automatically creates <p> . I do not want this <p> . How do I remove only the <p> tag without the content inside.

<li class="margin-bottom-8">
  <img src="images/iconPhoneGreen.png" class="margin-left-2 margin-right-7"><p>descricaoSYS</p>
</li>
    
asked by anonymous 27.02.2015 / 21:43

1 answer

5

Use the .unwrap() method.

$('p > *').unwrap();

DEMO

    
27.02.2015 / 21:47