aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/strings.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/helpers/strings.ts')
-rw-r--r--src/utils/helpers/strings.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/helpers/strings.ts b/src/utils/helpers/strings.ts
index 1f40b8f..d1de8ce 100644
--- a/src/utils/helpers/strings.ts
+++ b/src/utils/helpers/strings.ts
@@ -60,3 +60,6 @@ export const trimTrailingChars = (str: string, char: string): string => {
return str.replace(regExp, '');
};
+
+export const trimHTMLTags = (str: string) =>
+ str.replace(/(?:<(?:[^>]+)>)/gi, '').replaceAll('\n\n\n\n', '\n\n');