I am working with a CMS that produces double break tags in place of my preferred paragraph tag. I tried:
$('<br /><br />').replaceWith('</p>');
Now after you finish laughing; could you please let me know if this is possible and if yes, the best way to approach this.
Update (from OP comment):
The paragraphs are not empty they have a <p> tag at the start and the last para closes with a </p> the paragraphs in between are spaced with the double <br> tag.
I have no access to the editor code, which is my problem. It was custom build and awful.
if your server language is php then you can use
str_replace()http://php.net/manual/en/function.str-replace.php