MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / decodeHtml

Function decodeHtml

e2e/scenarios/google-disabled-api.test.ts:68–74  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

66const unique = (prefix: string) => `${prefix}_${randomBytes(4).toString("hex")}`;
67
68const decodeHtml = (value: string): string =>
69 value
70 .replaceAll("&", "&")
71 .replaceAll(""", '"')
72 .replaceAll("'", "'")
73 .replaceAll("&lt;", "<")
74 .replaceAll("&gt;", ">");
75
76const inputFields = (html: string): Record<string, string> => {
77 const fields: Record<string, string> = {};

Callers 2

inputFieldsFunction · 0.70
formActionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected