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:
<span style="color:#0098CF">Hola</span>
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.
<span> Hola </span>
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.