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:
parent
165039c177
commit
b58ddba328
6 changed files with 93 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue