#3025·lit

[localize] Escaping characters: msg("& string"... -> <source>&amp; string</source> -> translation prints as &amp;

Author: aomarksCreated Jun 10, 2022Updated Sep 15, 2026

Discussed in https://github.com/lit/lit/discussions/2715

Originally posted by pika11 April 7, 2022 When lit-localize extracts to .xlf it scapes some characters from source. Then when translated it gets printed as "& translated string"

Is there an option to turn off escapeHtml when getting the source, or alternative to unescape when printing?