MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / isHtmlContent

Function isHtmlContent

packages/agentflow/src/atoms/utils/xmlTagUtils.ts:33–36  ·  view source on GitHub ↗
(content: unknown)

Source from the content-addressed store, hash-verified

31 * Ported from packages/ui/src/ui-component/input/RichInput.jsx (PR #6021).
32 */
33export function isHtmlContent(content: unknown): boolean {
34 if (!content || typeof content !== 'string') return false
35 return /^\s*<(?:p|div|span|h[1-6]|ul|ol|li|br|code|pre|blockquote|table|strong|em)\b/i.test(content)
36}
37
38// ── Markdown serialisation ─────────────────────────────────────────────────────
39

Callers 3

loadContentFunction · 0.90
loadContentFunction · 0.90

Calls 1

testMethod · 0.80

Tested by

no test coverage detected