1
Answer

regex

So essentially, I do not want to strip any opening P tag with any attributes and I don't want to strip anything in the string. and closing too...

Test case/

<p style='color: green;'>What a fine day it is</p>

Desired Result/

<p ******Can BE  ANYTHING*****>What a fine day it is</p> 
Regex for this...we have to keep all attribute

 
<p style='color: green;'>What a fine day it is</p> 
Answers (1)