@types/xss-filters
TypeScript icon, indicating that this package has built-in type declarations

0.0.30 • Public • Published

Installation

npm install --save @types/xss-filters

Summary

This package contains type definitions for xss-filters (https://github.com/yahoo/xss-filters).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xss-filters.

index.d.ts

interface XSSFilters {
    inHTMLComment(s: string): string;
    inHTMLData(s: string): string;
    inDoubleQuotedAttr(s: string): string;
    inSingleQuotedAttr(s: string): string;
    inUnQuotedAttr(s: string): string;
    uriInHTMLComment(s: string): string;
    uriInHTMLData(s: string): string;
    uriInDoubleQuotedAttr(s: string): string;
    uriInSingleQuotedAttr(s: string): string;
    uriInUnQuotedAttr(s: string): string;
    uriPathInHTMLComment(s: string): string;
    uriPathInHTMLData(s: string): string;
    uriPathInDoubleQuotedAttr(s: string): string;
    uriPathInSingleQuotedAttr(s: string): string;
    uriPathInUnQuotedAttr(s: string): string;
    uriQueryInHTMLComment(s: string): string;
    uriQueryInHTMLData(s: string): string;
    uriQueryInDoubleQuotedAttr(s: string): string;
    uriQueryInSingleQuotedAttr(s: string): string;
    uriQueryInUnQuotedAttr(s: string): string;
    uriComponentInHTMLComment(s: string): string;
    uriComponentInHTMLData(s: string): string;
    uriComponentInDoubleQuotedAttr(s: string): string;
    uriComponentInSingleQuotedAttr(s: string): string;
    uriComponentInUnQuotedAttr(s: string): string;
    uriFragmentInHTMLComment(s: string): string;
    uriFragmentInHTMLData(s: string): string;
    uriFragmentInDoubleQuotedAttr(s: string): string;
    uriFragmentInSingleQuotedAttr(s: string): string;
    uriFragmentInUnQuotedAttr(s: string): string;
}

declare var xssFilters: XSSFilters;

declare module "xss-filters" {
    export = xssFilters;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Dave Taylor.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xss-filters

Weekly Downloads

10,483

Version

0.0.30

License

MIT

Unpacked Size

5.52 kB

Total Files

5

Last publish

Collaborators

  • types