app/frontend/shared/utils/wordFilter.ts
Function wordFilter
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const wordFilter = (editor: Element) => {
let content = editor.innerHTML
// Word comments like conditional comments etc
content = content.replace(/<!--[\s\S]+?-->/gi, '')