File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,13 @@ export function updateStockStatus(products) {
130
130
131
131
// Update other cells
132
132
if ( priceCell && product . productPrice ) {
133
- priceCell . textContent = product . productPrice ;
133
+ // Create a temporary element to decode HTML entities
134
+ const tempElement = document . createElement ( 'div' ) ;
135
+ tempElement . innerHTML = product . productPrice ;
136
+ // Set the decoded text content
137
+ priceCell . textContent = tempElement . textContent ;
134
138
priceCell . style . color = "" ;
139
+ tempElement . remove ( ) ;
135
140
}
136
141
if ( linkCell && product . internalLink ) {
137
142
linkCell . innerHTML = `<a href="${ product . internalLink } " target="_blank" rel="noopener noreferrer">View<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M5 17.59L15.59 7H9V5h10v10h-2V8.41L6.41 19z"/></svg></a>` ;
You can’t perform that action at this time.
0 commit comments