MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / htmlEscape

Function htmlEscape

pmcaptcha/pmcaptcha.ts:18–24  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

16import { safeGetMe } from "@utils/authGuards";
17const PLUGIN_VERSION = "5.0.6";
18
19function htmlEscape(value: any): string {
20 return String(value ?? "")
21 .replace(/&/g, "&")
22 .replace(/</g, "&lt;")
23 .replace(/>/g, "&gt;")
24 .replace(/"/g, "&quot;");
25}
26
27function codeTag(value: any): string {

Callers 11

codeTagFunction · 0.70
attrEscapeFunction · 0.70
userLinkFunction · 0.70
buildFooterFunction · 0.70
rebuildCaptchaTextFunction · 0.70
rebuildImgCaptionFunction · 0.70
sendCaptchaFunction · 0.70
buildImgCaptionFunction · 0.70
handleReplyFunction · 0.70
helpTextFunction · 0.70
pmcaptchaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected