UNPKG

@devgateway/dvz-ui-react

Version:

A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.

12 lines (11 loc) 521 B
import n from "dompurify"; const i = (t) => typeof t == "boolean" ? t : typeof t == "string" ? t === "true" : !1, s = (t) => typeof t == "number" ? t : typeof t == "string" && parseInt(t) || 0, m = (t) => new DOMParser().parseFromString(t, "text/html").documentElement.textContent, c = (t) => { const e = new DOMParser().parseFromString(t, "text/html"); return n.sanitize(e.documentElement.innerHTML); }; export { c as decodeHtmlEntitiesToHtml, m as decodeHtmlEntitiesToText, i as toBoolean, s as toNumber };