diff --git a/src/utils/helper/socialLink.ts b/src/utils/helper/socialLink.ts index 5b4de86..ed37003 100644 --- a/src/utils/helper/socialLink.ts +++ b/src/utils/helper/socialLink.ts @@ -51,9 +51,9 @@ export const cleanText = (htmlString: string): string => { .replace(/ /gi, " ") .replace(/</gi, "<") .replace(/>/gi, ">") - .replace(/&/gi, "&") .replace(/"/gi, '"') .replace(/'/gi, "'") + .replace(/&/gi, "&") .replace(/(\s*)*/gi, "\n") .replace(/<\/?p>/gi, " ") .replace(/<\/?[^>]+(>|$)/g, "")