- Issue created by @justcaldwell
- πΊπΈUnited States justcaldwell Austin, Texas
Drupal.t()
will pass strings through \Drupal\Component\Utility\Html::escape(). Not sure if there's an easy way to allow HTML in javascript like this. - π©πͺGermany berliner
Run into this too and I don't think that we can pass HTML markup in
Drupal.t()
.I have created a patch that changes the way these default strings are handled and how translation can happen now. Not sure this covers all use cases, but I'll attach it here for review.
- π΅π±Poland mahyarss
Thank you @justcaldwell for reporting this issue and @berliner for providing a patch to address it!
I have reviewed and applied the patch, and the issue has been resolved. The fix is now included in the latest development version: 1.0.x-dev (updated on 6 Dec 2024). It will also be available in the upcoming stable release.
Your contributions are greatly appreciated. If you have further feedback or encounter any related issues, please feel free to share!
- π©πͺGermany berliner
Great! Looking forward to a stable release then.
This is a great module!