import { encodeSVGforURL } from "./url.js"; /** * Encode the `SVG` to be used on `CSS`: https://bl.ocks.org/jennyknuth/222825e315d45a738ed9d6e04c7a88d0. * * @param svg The `SVG` source. */ function encodeSvgForCss(svg) { let useSvg = svg.startsWith("") ? svg.replace("", "") : svg; if (!useSvg.includes(" xmlns:xlink=") && useSvg.includes(" xlink:")) useSvg = useSvg.replace("