Search Issue Tracker

Fixed in 0.10.1

Votes

0

Found in [Package]

0.5.7, 0.10.0

Issue ID

1208859

Regression

No

[UIBuilder] A parsing error is thrown when saving UI Builder .uxml preview file containing '&' character in value fields

Package: UI Builder

-

How to reproduce:
1. Open the attached 'project-1208859.zip' project
2. In the UI Builder window drag a Label object from the Library to the Preview window
3. In the UI Builder's Inspector change the Label's Text to '&'
4. Save the .uxml asset
5. Observe the Console window

Expected result: no errors are thrown
Actual result: a parsing error is thrown

Reproducible with: 2019.2.19f1, 2019.3.0f5 (0.5.7, 0.9.0, 0.10.0), 2020.1.0a20 (0.9.0, 0.10.0)
Could not test with: 2017.4.36f1, 2018.4.16f1 (UI Builder not available)

Thrown error:
Assets/NewUI.uxml: Syntax - Xml is not valid, exception during parsing: System.Xml.XmlException: An error occurred while parsing EntityName. Line 2, position 45.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <1d98d70bb7d8453b80c25aa561fdecd1>:0

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.