I'm facing issues with UTF8 characters when using
SanitizeValueStrategy('sanitize')
. This is necessary because the client will be editing texts in language files and may include tags like <b>
or <i>
...
I want to rely exclusively on the json file for translations. The client will not be making any changes to the app code. JSON file:
{
"H1": "House Types",
"NAME": "FirstName"
}
The problem arises only when using angular's interpolation:
<h1 translate>houseTypes.H1</h1>
House Types
I can use this method to insert text inside element bodies, but the issue persists for attributes.
<input placeholder="'houseTypes.NAME'|translate"></h1>
Křestní
The question remains:
How can I ensure that UTF8 characters display correctly while utilizing only the JSON static file loader in interpolations, or through attributes like placeholder
.