If you use e.g. apostrophes in the subject line of the basic cart checkout settings (.../admin/config/basic_cart/settings/checkout), they are translated as ' in the mail itself.

In .../sites/all/modules/basic_cart/basic_cart_order/basic_cart_order.module, I changed:

- $message['subject'] = t(check_plain(variable_get('basic_cart_admin_subject')));
+ $message['subject'] = t(decode_entities(filter_xss(variable_get('basic_cart_admin_subject'))));

I left the check_plain out.

I suppose the same issue exists for the user_mail.

SOURCES
- https://www.drupal.org/project/mass_contact/issues/1971386#comment-7308562
- https://drupal.stackexchange.com/questions/88419/how-do-i-stop-html-enti...

Comments

· BOOSSY · created an issue. See original summary.

stijnbousard’s picture

Issue summary: View changes
stijnbousard’s picture

Issue summary: View changes
norman.lol’s picture

Status: Active » Closed (outdated)

7.x-* unsupported

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.