I have 2 statement coming in string as below
"<font color='#F7D122'>".replace(/color='/g, "style='color:")
will return
<font style='color:#F7D122'>
but how can I replace below one ?
"<font color=#F7D122>".replace(/color='/g, "style='color:")
will return
<font color=#F7D122>
but Instead I want return as
<font style='color:#F7D122'>
In second replace statement you can find that string does not contain single quotes