Issue
When rendering a user interface (UI) page, the following error appears: The reference to entity "PS" must end with the ';' delimiter.
The error can vary depending on the content of the UI page.
Cause
The error appears when a value that includes special characters is rendered. Characters such as <, >, `, or & are not escaping.
Resolution
This issue can be resolved by modifying the UI page and using a script method that addresses fields and their values.
To update the UI page:
- Navigate to System UI > UI Pages.
- Search for and select the UI page record you want to update.
- In the HTML pane, add the getHTMLValue()script method to each displayed element. This script method is used to get the HTML value of a field and address escaping special characters.
- For example, a UI page that displays the short_description element as ${gp.short_description} should be changed to ${gp.short_description.getHTMLValue()}.
- Click Update to save changes to the record.