Is there a way to parse the style attribute of a basic <font>
tag and then convert it back to simple html attributes? For example, if I have this string
<font style="font-family:tahoma;font-size:24px;color:#9900CC;">
, is it possible to convert it to <font size="24" color="#9900CC" face="tahoma">
using regex or any other method?
Any help would be appreciated. Thank you.