Skip to content

Commit

Permalink
Merge pull request #16170 from abpframework/fix/16169
Browse files Browse the repository at this point in the history
Fix/16169 safe html pipe lint error
  • Loading branch information
masum-ulu authored Apr 4, 2023
2 parents 39bb52d + b217261 commit 5934a48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>`);
});
});

0 comments on commit 5934a48

Please sign in to comment.