Skip to content

Commit

Permalink
commit patches
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Jan 8, 2025
1 parent adb4ecf commit 46fd2e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/wc-compiler+0.15.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/wc-compiler/src/wcc.js b/node_modules/wc-compiler/src/wcc.js
index 275836c..383c6f1 100644
--- a/node_modules/wc-compiler/src/wcc.js
+++ b/node_modules/wc-compiler/src/wcc.js
@@ -190,7 +190,7 @@ function renderLightDomChildren(childNodes, iHTML = '') {
? ''
: `</${nodeName}>`;
} else if (nodeName === '#text') {
- innerHTML += value;
+ innerHTML += value.replace(/</g, '&lt;'); // .replace(/>/g, '&gt;');
}
});

0 comments on commit 46fd2e2

Please sign in to comment.