MCPcopy Create free account
hub / github.com/TypeCellOS/BlockNote / removeClassesFromHTML

Function removeClassesFromHTML

tests/src/utils/copypaste.ts:34–36  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

32}
33
34export function removeClassesFromHTML(html: string) {
35 return html.replace(/class="\S*"\s/g, "");
36}
37
38export function removeMetaFromHTML(html: string) {
39 return html.replace(/<meta charset='utf-8'>/g, "");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected