I have a string in that i will be getting so many html tag i want to replace them with space .How can we do this please suggest me .This is my string :
Wrong html <a> </I> <p>My paragraph</p> <i>Italics</i> <p class="blue">second</p> and the string is <br> after that test.
I have tried this but this is not working accordingly:
$string =~ s/(<((?!br|p)[^>]+)>)//ig;