CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.10-dev (changelog, source)
Search

Predicate DomBasedXss::isPrefixOfJQueryHtmlString

Holds if prefix is a prefix of htmlString, which may be interpreted as HTML by a jQuery method.

Import path

import semmle.javascript.security.dataflow.DomBasedXssCustomizations
predicate isPrefixOfJQueryHtmlString(Node htmlString, Node prefix)