Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
"The submitted string contains disallowed HTML: Allowing all formats to translate doesn't fix the issue.
"The submitted string contains disallowed HTML: Allowing all formats to translate doesn't fix the issue.
Comments
Comment #2
GiorgosKas @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
Comment #3
Triumphent CreditAttribution: Triumphent commented@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.
Comment #4
rida-maksour CreditAttribution: rida-maksour commentedA 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')));
Comment #5
nickonom CreditAttribution: nickonom commentedConsider using https://www.drupal.org/project/disable_translate_validation instead.
Comment #6
sano CreditAttribution: sano commented@nickonom thanks for the module. Seems to work nicely.