forcedotcom / forcedotcom/b2b-commerce-on-lightning-quickstart

Special characters are incorrectly displayed as html entities in PLP

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
191
Forks
211
PR merge metrics
No merged PRs in 30d

Description

The filters of the PLP display special characters such as & and " as their html entities & and ". The built-in Results Layout component does not have the same problem It outputs & and " as they are.

The code should be fixed to address this bug. Currently anyone that codes a custom PLP will start with this lightning quickstart, which means that all of Salesforce's customers that have a custom PLP have this problem. It's possible that this happens in other areas of code as well, but I've noticed it on the PLP search result filters.

![image](https://user-images.githubusercontent.com/76489814/119982356-bc469100-bf8c-11eb-87f4-bcdd985c9ded.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the custom PLP search result filters with the built-in Results Layout component, which reportedly renders special characters correctly. Trace the filter output and identify where ampersands and quotation marks become HTML entities; done means the custom PLP displays those characters as characters rather than encoded entities.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.