regex to replace self closing html tags in c# -
I have an XML that includes some html tags. Whenever it comes to a tag, it breaks the page Because it is itself a closing tag something like this:
I want to change it and want to change it:
Can someone provide a C # code with regex to do this. I tried:
tmp = tmp.Replace ("(
and
tmp = new reggae (@ "(iframe [^ & gt;] *) (\\ s * / & gt ;) "). Change (TMP, "$ 1> ");
There is a lot of code containing TMP xml + it is in the form of an iframe tag string.
But with no results.
In the second regex, you do not need double backslash.
In addition, (
Comments
Post a Comment