"The submitted string contains disallowed HTML:Only local images are allowed. Allowing all formats to translate doesn't fix the issue.

Comments

Triumphent created an issue.

GiorgosK’s picture

as @Triumphent points out the settings in
admin/config/regional/i18n/strings
don't help fix this problem

possible workarounds
https://www.drupal.org/node/372965

from drupal 6 but I think they are still relevant
#1814302: The submitted string contains disallowed HTML Error when translating strings

Triumphent’s picture

@GiorgosK. Thanks for the link. I had tried this and other variants but the problem remained.

I finally figured out that the culprit was the Entity Translation module that does not integrate well with the Internationalization module. It's odd that two well known modules that should work together, don't!

But there is a patch available that will fix the problem along with other error messages.

https://www.drupal.org/node/1661348

Hope this works for you.

rida-maksour’s picture

A workaround this would be a patch to the core :
includes/local.inc
line 527 :
+ return decode_entities($string) == decode_entities(filter_xss($string, array('div', 'a', 'abbr', 'acronym', 'address', 'b', 'bdo', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'ins', 'kbd', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var')));
- return decode_entities($string) == decode_entities(filter_xss($string, array('a', 'abbr', 'acronym', 'address', 'b', 'bdo', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'ins', 'kbd', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var')));

nickonom’s picture

sano’s picture

@nickonom thanks for the module. Seems to work nicely.