2
I have a part of the site that is manageable, and this manager creates a <p>
automatically. I don’t want this <p>
. How do I remove only the tag <p>
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>
+1. I was not aware of this function.
– André Ribeiro
+1, also did not know.
– Tobias Mesquita
I went to test and it didn’t work =/
– Felipe Viero Goulart
@Felipestoker It’s something thus that you want?
– stderr
@Exact qmechanic73, only it didn’t work on me oo. https://jsfiddle.net/felipestoker/kkhsLz11/ in this case, the P automatically goes inside
<span>descricaoSYS</span>
. I guess I have to create a class because I can’t remove all thep
of the site.– Felipe Viero Goulart
@Felipestoker On the jQuery page (http://api.jquery.com/unwrap/) there is an example that removes the tag
p
if you are only related to a div see if it’s something like what you want to do.– stderr
is similar yes, but do not know why here n works
– Felipe Viero Goulart
@Felipestoker has succeeded?
– stderr