{"version":3,"file":"unsafeStripHTML.mjs","sources":["../src/unsafeStripHTML.ts"],"sourcesContent":["// unsafeStripHTML only removes HTML tags in angle brackets.\n// It does not handle HTML entities or other sneaky ways of expressing HTML.\n// Note: It preserves whitespace.\n// Current use case: Remove HTML tags from email templates to produce plain text version of email.\nexport function unsafeStripHTML(markup: string): string {\n\treturn markup.replace(/(<([^>]+)>)/gi, \"\")\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACM,SAAU,eAAe,CAAC,MAAc,EAAA;IAC7C,OAAO,MAAM,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAA;AAC3C;;;;"}