How to import/add translated strings having inline styles? I've imported a .po file having Spanish translations. The import was successful but some translation strings were skipped because they contain disallowed HTML.

From UI, I found that some translations were not translated. So I tried them adding those via the translate admin interface (Administration » Configuration » Regional and language » Translate interface)

I could see the original text having inline style like following.



But when I tried to add a Spanish (Latin American) Translation and hit 'Save translations' getting the following error.


  The submitted string contains disallowed HTML:&lt;span style="color:#0098CF"&gt;Hola&lt;/span&gt;


I've enabled Translatable all HTML text formats under multilingual settings  (Administration » Configuration » Regional and language » Multilingual settings)



It's working when I remove inline style add translation   like the following. So I guess it's not supporting inline styles and classes.

&lt;span&gt; Hola &lt;/span&gt;


What could be the problem? I found a function in function locale_string_is_safe($string) under includes/locale.inc file. Do I need to do any tweaks with that?

Any suggestions would be much appreciated.
Yes your guess is correct,locale_string_is_safe  "Check that a string is safe to be added or imported as a translation." if you want to ignore your job you should patch it for a while , 
change it to 

function locale_string_is_safe($string) {
  return TRUE:
}


after your job  revert it.