1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

added insane to sanitize html

This commit is contained in:
Fedor Katurov 2021-02-24 17:55:23 +07:00
parent 165039c177
commit b58ddba328
6 changed files with 93 additions and 14 deletions

View file

@ -95,14 +95,14 @@ export const getURL = (file: Partial<IFile>, size?: typeof PRESETS[keyof typeof
};
export const formatText = pipe(
formatTextSanitizeTags,
formatTextSanitizeYoutube,
formatTextComments,
formatTextTodos,
formatExclamations,
formatTextDash,
formatTextMarkdown,
formatTextClickableUsernames
formatTextClickableUsernames,
formatTextSanitizeTags
);
export const formatTextParagraphs = (text: string): string => (text && formatText(text)) || null;