How would I replace this:

```
<p class='abc'>blah blah</p> afdads

```

With this:

```
blah blah <br/>

```

Using (vanilla?) JavaScript?

Thanks!

**Updated Content**

```
$content = $_REQUEST['content'];
$content = preg_replace('/<p[^>]*>/', '', $content); // Remove the start <p> or <p attr="">
$content = preg_replace('/</p>/', '<br />', $content); // Replace the end
echo $content; // Output content without P tags

```

I would something like this...hope this time you mates have got my question.

Thankyou