I am trying to replace </p> with <br /> in specific content. I am using the following code :
<?php echo preg_replace('</p>', '<br />', $articlesRecord['content']); ?>
It works in that is puts the correct spacing in but adds the < > into the content. See attached screenshot.
Can you help me figure what I am missing or doing wrong?