Open honzaluksch opened 4 years ago
It's actually the same case for getRecord
, getRecordUi
and most likely all those wire apis. There should be a parameter to disable the escaping.
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
This issue has been linked to a new work item: W-7305378
Describe the bug When using getPicklistValuesByRecordType wire adapter to fetch picklist values from org, it seems to return HTML/XML escaped data. It results to incorrect behaviour if you have ampersands or other special character in picklist values.
E.g. Picklist value "Tom & Jerry" comes as
"Tom & Jerry"
To Reproduce Steps to reproduce the behavior:
Expected behavior getPicklistValuesByRecordType wire adapter should have consistent behaviour on both LWC dev server and Salesforce org.
Screenshots Picklist field setup:
Picklist values displayed on LWC Dev Server:
Picklist values displayed on org:
Raw data on LWC Dev Server:
Desktop:
Additional context LWC Dev Sever connects to dev sandbox (API version 47). It is the same sandbox I was deploying the test component to.
Other wire adapters or UI API related libraries may be affected.