a8m / a8m/angular-filter

It is possible to fool strip-tags

Open
#160 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

`'ipt> alert(document.cookie);ipt>'` turns into ` alert(document.cookie);`.

The simpler regexp `/<[^>]+>/g` does strip the HTML.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.