0

I have a content that returns HTML as a string. I need to add a specific class for elements that contains inline background-color or color. Normally we can find the class or id name and add or remove classes. How do I manipulate HTML string here?

<div style="font-size :  13px; font-family :  Arial,  Helvetica,  sans-serif; ">
<span class="x_965909101highlight" style="background-color :  rgb(255, 255, 255); "><span class="x_965909101font" style="font-family :  tahoma,  arial,  helvetica,  sans-serif,  sans-serif; "><span class="x_965909101size" style="font-size :  13px; "> please check the below concern and advice.<br /><br />Cx concern:&nbsp;</span></span></span></div>
Karuppiah RK
  • 3,894
  • 9
  • 40
  • 80

0 Answers0