You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Replace the SVG elements in the HTML with their escaped versions to improve security.
98
132
// It's not possible to do it with html renderer because the svg consists of multiple tags.
99
-
// One edge case is not covered: if the svg is inside the <code> tag, it will be rendered as with < & > instead of "<" & ">"
100
133
constescapedText=escapeSvgs(text);
101
134
102
135
// The dynamic import cannot be analyzed by Vite. As it is intended, we use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
0 commit comments