I’m editing a WordPress theme.
I have something like this in a WordPress loop:
<a class="link" href="<?php the_content(); ?>"></a>
Which will turn into something into like this cause by WordPress:
<a class="link" href="<p>http://google.com</p>"></a>
How do I remove the <p></p> tags inside the href by using jquery? I have multiple of these in a loop.
You could also do this very easily without jQuery as well: