How to remove the HTML <P> </P> Tag from CSS -


working in webobjects, result of page :

<p> hello world </p> 

i want remove <p></p> tag result of css. <p> hello world </p> coming under <div class="test">.

is there way apply css class test remove <p> </p> tag.

this not possible using css need jquery or javascript

$('p').contents().unwrap();
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <p> hello world </p>

but can use replacewith replace <p> <div>

$( "p" ).replacewith( "<div class=test> hello world </h2>" );
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <p> hello world </p>


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -