Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Sep 25, 2023
1 parent 36b05b6 commit e8c837a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kit/preprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function escapeSvelteSpecialChars() {
node.value = node.value.replaceAll("<", "&#60;");
}else if(hfDocBodyStart && !hfDocBodyEnd && htmlTags.includes(tagName)){
const $ = cheerio.load(node.value);
// Go through each text node in the HTML and replace "a" with "b"
// Go through each text node in the HTML and replace "{" with "&#123;"
$('*').contents().each((index, element) => {
if (element.type === 'text') {
element.data = element.data.replaceAll("{", "&#123;");
Expand Down

0 comments on commit e8c837a

Please sign in to comment.