mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-18 12:08:59 +08:00
9 lines
234 B
TypeScript
9 lines
234 B
TypeScript
import * as htmlescape from "htmlescape";
|
|
import { sanitize } from "htmlescape";
|
|
|
|
// === '{"x":"a\\u0026\\u003c\\u003e\\u2028\\u2029"}'
|
|
htmlescape({ x: "a&<>\u2028\u2029" });
|
|
|
|
// === 'a&<>\\u2028\\u2029'
|
|
sanitize("a&<>\u2028\u2029");
|