Resolved
Reported for: WPML String Translation 3.2.1
Resolved in: WPML 4.6.4
Overview of the issue
WPML allows you to import strings from PO files in WPML → String Translation → Import / export .po. However, if any of those strings includes HTML tags, they will be stripped during the importing process.
Workaround
Please, be sure of making a full backup of your site before proceeding.
- Open the /wp-content/plugins/wpml-string-translation/classes/po-import/class-wpml-po-import-strings.php file.
- Look for line 43.
- Replace:
$original = filter_var( $string->original, FILTER_SANITIZE_STRING );
- With:
$original = htmlspecialchars( $string->original );