-
Notifications
You must be signed in to change notification settings - Fork 24
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
Escaping "Grater than" and "Less than" symbols #7
Comments
Please try changing the In general, it's valid to use So we can't just encode any |
You are right, thank you. I found the solution of this problem;
|
So did you try the "Output format" with a value of "Android XML with escaped"? Did it work for you? Considering your solutions, I'd prefer not to wrap everything in a CDATA section, so number two would be the better one. However, it should be enough to use |
Thank you for your advice. Before introducing Localize, I used both entity referenced characters and CDATA sections in the same XML file. Text resources were imported as follows:
I tried both "Android XML" and "Android XML with escaped", but those results were not expected. Problem situationOriginal XML
Imported as
Exported XML (Android XML)
Exported XML (Android XML with escaped HTML)
My solutionModified
Exported XML (Android XML)
|
"Grater than" (>) and "Less than" (<) symbols should be converted as Entity Reference when exported as a XML file. If these symbols are used directly, incorrect XML file will be generated.
Example of the issue
String
Exported XML
The text was updated successfully, but these errors were encountered: