Spaces:
Running
Running
Download apps/api/dist/common/escape-html.js from Benaah/MicProtocol: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/api/dist/common/escape-html.js
- Command line
-
hf download hf://spaces/Benaah/MicProtocol/apps/api/dist/common/escape-html.js
-
curl -L -o escape-html.js https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/api/dist/common/escape-html.js
497 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.escapeHtml = escapeHtml; | |
| function escapeHtml(input) { | |
| if (input === null || input === undefined) { | |
| return ""; | |
| } | |
| const str = typeof input === "string" ? input : String(input); | |
| return str | |
| .replace(/&/g, "&") | |
| .replace(/</g, "<") | |
| .replace(/>/g, ">") | |
| .replace(/"/g, """) | |
| .replace(/'/g, "'"); | |
| } | |
| //# sourceMappingURL=escape-html.js.map |