Skip to content

Commit 17d5c6b

Browse files
authored
Merge branch 'main' into feat/custom-gradient-stops
2 parents 6f01936 + 61f67f3 commit 17d5c6b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/svg/generator.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,10 @@ describe('escapeXML', () => {
12361236
it('escapes script injection characters <script>&" together', () => {
12371237
expect(escapeXML('<script>&"')).toBe('&lt;script&gt;&amp;&quot;');
12381238
});
1239+
1240+
it('should handle boundary input with only special XML characters', () => {
1241+
expect(escapeXML('<>&"\'')).toBe('&lt;&gt;&amp;&quot;&#39;');
1242+
});
12391243
});
12401244

12411245
describe('particleCount', () => {

0 commit comments

Comments
 (0)