Jump to content

matching tags


ted_chou12

Recommended Posts

Hi, I wish to match tags with self closed slashes and convert them to non self closed:

eg.

<br /> => <br>

<img src="...." height="" .... /> => <img src="..." height="" ...>

just replace the last two characters /> to > but they might be in a long text eg...

<html> <br /> text....
this is a title page<img src="" height="" />
<table>
...
</table>
...

Thanks

Ted

Link to comment
https://forums.phpfreaks.com/topic/214955-matching-tags/
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.