#17357·mautic

Confirmation cancel label shows unicode escape sequence in Russian locale

Author: AlexanderZlobinM1Created Sep 11, 2026Updated Sep 13, 2026

Summary

stores cancel button label via in . On non-ASCII locales the value is rendered as unicode escape sequences (for example, ) which then appears as literal text in the confirmation modal cancel button.

Steps to reproduce

  1. Install a clean supported Mautic 7.2 (vanilla, without Sales Snap / localization plugins).
  2. Open a page with a delete confirmation button that uses in Russian locale.
  3. Click the confirmation trigger.

Actual result

Cancel button label appears as escaped unicode sequences in the modal (e.g. instead of ).

Expected result

Cancel label should use the localized text () and remain readable.

Notes

  • Confirmed on vanilla 7.2.0 build and existing local reproduction.
  • Change is non-functional UI text fix and should be safe for other locales.

Proposed fix details

  • Render with HTML-attribute escaping, not JS escaping, so localized text is preserved.
  • Render cancel button label using in JS to avoid interpretation of HTML content passed through data attributes.
  • Add Twig regression test for Unicode and special HTML character safety.



Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.