feat(guides) : add safer publishing and discovery
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ export function sanitizeRichTextHtml(value: string): string {
|
||||
});
|
||||
}
|
||||
|
||||
export function isRichTextHtml(value: string): boolean {
|
||||
function isRichTextHtml(value: string): boolean {
|
||||
return /<(?:p|br|strong|em|u|s|a|span|ul|ol|li|blockquote|pre|code)\b/i.test(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user