mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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");
|