D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
wabot.whatzi.online
/
node_modules
/
parse5
/
node_modules
/
entities
/
src
/
Filename :
escape.spec.ts
back
Copy
import { describe, it, expect } from "vitest"; import * as entities from "./index.js"; describe("escape HTML", () => { it("should escape HTML attribute values", () => expect(entities.escapeAttribute('<a " attr > & value \u00A0!')).toBe( "<a " attr > & value !", )); it("should escape HTML text", () => expect(entities.escapeText('<a " text > & value \u00A0!')).toBe( '<a " text > & value !', )); });