How to get the I tag in a web page through regular expressions?

clipboard.png
this is currently the case. You want to get all the I tags in the rich text, add this style, and then replace it. Is there any way to solve it?

Jan.11,2022

str.replace (/\ < I ([^ >]. *?)\ > / g < style= "font-style:italic" >')

Menu