Skip to content

Commit

Permalink
fix: typings IWhiteList allow any tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
leizongmin committed May 6, 2021
1 parent 005098b commit a1d9b44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion typings/xss.d.ts
Expand Up @@ -24,7 +24,7 @@ declare module "xss" {
css?: {} | boolean;
}

interface IWhiteList {
interface IWhiteList extends Record<string, string[] | undefined> {
a?: string[];
abbr?: string[];
address?: string[];
Expand All @@ -51,6 +51,8 @@ declare module "xss" {
dl?: string[];
dt?: string[];
em?: string[];
figure?: string[];
figcaption?: string[];
font?: string[];
footer?: string[];
h1?: string[];
Expand All @@ -77,6 +79,8 @@ declare module "xss" {
sub?: string[];
sup?: string[];
strong?: string[];
strike?: string[];
summary?: string[];
table?: string[];
tbody?: string[];
td?: string[];
Expand Down

0 comments on commit a1d9b44

Please sign in to comment.