Skip to content

Commit 1add8b0

Browse files
committed
JavaScript: add doc comment
1 parent 2b5684d commit 1add8b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

javascript/ql/src/semmle/javascript/HtmlSanitizers.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ abstract class HtmlSanitizerCall extends DataFlow::CallNode {
1515
abstract DataFlow::Node getInput();
1616
}
1717

18+
/**
19+
* Matches HTML sanitizers from known NPM packages as well as home-made sanitizers (matched by name).
20+
*/
1821
private class DefaultHtmlSanitizerCall extends HtmlSanitizerCall {
1922
DefaultHtmlSanitizerCall() {
2023
exists (DataFlow::SourceNode callee | this = callee.getACall() |

0 commit comments

Comments
 (0)