Elektrine lite

← Feed

@ultimike@drupal.community

2026-09-26 09:15 UTC

💬 "If you're using Twig's raw filter with #Drupal, you're doing it wrong" Agreed. ✅ Do what @larowlan@drupal.community says 🎯 (and share this with junior devs 👨‍💻.) https://www.previousnext.com.au/blog/if-youre-using-twigs-raw-filter-drupal-youre-doing-it-wrong

Replies (1)

  • @joelpittet@drupal.community 2026-09-26 18:10

    @ultimike@drupal.community @larowlan@drupal.community way to take the baton. Yes twig’s raw is a code smell 👃 that all should know and avoid. Track the value back to source, filter it and wrap it as markup after you know it’s sanitized. Or this will happen https://xkcd.com/327/

    Open ##4859970