Sha256: 64de78c1061a87017c576a8832d9c3c46a1d9bbb3ee4e162650665274669ebe3
Contents?: true
Size: 308 Bytes
Versions: 18
Compression:
Stored size: 308 Bytes
Contents
export const escapeHtml = (text) => { if (!text) { return ""; } const el = document.createElement("div"); el.appendChild(document.createTextNode(text)); return el.innerHTML; } export const escapeQuotes = (text) => { if (!text) { return ""; } return text.replace(/"/g, """); }
Version data entries
18 entries across 18 versions & 1 rubygems