-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding Symbol Constants #368
Comments
How do you think would be the best way to do this? Automatic escaping that the engine just does transparently, with a special directive that indicates that replacements in a particular region should be escaped in a certain way (in the content files), an alternate value form (like how name changes behavior between file name, namespace and class) or a special indication in the config? |
Not entirely sure. A default of being encoded by default might be good but with a way of turning that off and/or configuring it. |
Assuming that the value that needs to be encoded in the XML is encoded in the XML already, you can use name forms for this. Ex.
This will replace the literal |
Note: The syntax for defining value forms in template.json has changed since this post. See #1524 for an updated example. |
If I have a
constant
symbol that determines the assembly product in a.csproj
and I enter an&
, the ampersand needs to be XML encoded.The text was updated successfully, but these errors were encountered: