I'm trying to insert <br/><br/>
after the comment tag <!-- pagebreak -->
but I'm not sure how to achieve this? my code so far:
html:
<div class="tab-content">
some content
<!-- pagebreak -->
some more content
<!-- pagebreak -->
some more content
</div>
jQuery:
$( ".tab-content" )
.contents()
.filter(function() {
return this.nodeType === 8;}
.each().after( "<br/><br/>" ).end());
Can anyone advise on how can achieve this?
Thanks