[localize] Escaping characters: msg("& string"... -> <source>& string</source> -> translation prints as &
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?
Source: lit/lit