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

Function htmlEscape

ip/ip.ts:6–14  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

4import { safeGetReplyMessage } from "@utils/safeGetMessages";
5
6import { htmlEscape } from "@utils/htmlEscape";
7
8async function getIpInfo(query: string): Promise<any> {
9 if (!query || query.trim() === "") {
10 return {
11 status: "fail",
12 message: "请提供有效的IP地址或域名",
13 };
14 }
15
16 const cleanQuery = query.trim();
17 const apiUrl = `http://ip-api.com/json/${encodeURIComponent(

Callers 1

ipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected