UNPKG

xml-utils

Version:

Parse XML without Blowing Up Your Bundle Size

4 lines (3 loc) 90 B
export default function removeComments(xml) { return xml.replace(/<!--[^]*-->/g, ""); }