We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e2146 commit 1b0e836Copy full SHA for 1b0e836
src/runtime/internal/ssr.ts
@@ -84,11 +84,11 @@ export function escape(html: string, is_attr = false) {
84
while (pattern.test(html)) {
85
const i = pattern.lastIndex - 1;
86
const ch = html[i];
87
- escaped += html.slice(last, i) + (ch === '&' ? '&' : (ch === '"' ? '"' : '<'));
+ escaped += html.substring(last, i) + (ch === '&' ? '&' : (ch === '"' ? '"' : '<'));
88
last = i + 1;
89
}
90
91
- return escaped + html.slice(last);
+ return escaped + html.substring(last);
92
93
94
export function escape_attribute_value(value) {
0 commit comments