I actually have a string with html. And I would like to parse it using xmlparser. The pb is that some tags of my string are not correct. Especially the <img />
tags. So I need to replace those tags because it miss the final /
. I would like to retrieve all img
tags and add a /
at the end.
For that, I need to find all the <img
in my text until the next >
to replace it by />
in order to parse my string.
Anyone can help me?
Thanks