Merge pull request #16170 from abpframework/fix/16169

Fix/16169 safe html pipe lint error
pull/16179/head
Masum ULU 3 years ago committed by GitHub
commit 5934a4877e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,6 @@ describe('SafeHtmlPipe', () => {
it('should sanitize unsafe HTML content', () => {
const input = `<script>alert("hello world");</script><p><a href='#' onclick="alert('This is an XSS attack!')">Click here!</a></p>`;
const result = pipe.transform(input);
expect(result).toBe(`<p><a href=\"#\">Click here!</a></p>`);
expect(result).toBe(`<p><a href="#">Click here!</a></p>`);
});
});

Loading…
Cancel
Save