MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / isHtmlContent

Function isHtmlContent

packages/ui/src/utils/xmlTagUtils.js:29–32  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

27 * @returns {boolean} True if content looks like legacy HTML
28 */
29export const isHtmlContent = (content) => {
30 if (!content || typeof content !== 'string') return false
31 return /^\s*<(?:p|div|h[1-6]|ul|ol|blockquote|pre|table)\b/i.test(content)
32}
33
34/**
35 * Regex matching opening, closing, and self-closing XML/HTML tags.

Callers 3

RichInputFunction · 0.90
ExpandRichInputDialogFunction · 0.90

Calls 1

testMethod · 0.80

Tested by

no test coverage detected