Jump to content

move <br> tag to right side of </p>


kalster

Recommended Posts

I have a line of text like this...

<p>example<br /><br /><br /></p><br />

where the number of br tags before and after the </p> tag are unknown.

I need the line displayed like this...

<p>example</p><br /><br /></br /><br />

I need it in the preg_replace, where the part of the line begining with <p>example is untouched.

Thank you in advanced.

Link to comment
https://forums.phpfreaks.com/topic/296810-move-tag-to-right-side-of/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.