MCPcopy Create free account
hub / github.com/simstudioai/sim / looksLikeHtml

Function looksLikeHtml

apps/sim/connectors/granola/granola.ts:146–148  ·  view source on GitHub ↗

* Detects whether a string contains HTML markup. Granola returns markdown for * `summary_markdown`, but this guard lets us defensively strip tags if the API * ever emits HTML, without mangling legitimate markdown.

(value: string)

Source from the content-addressed store, hash-verified

144 * ever emits HTML, without mangling legitimate markdown.
145 */
146function looksLikeHtml(value: string): boolean {
147 return /<\/?[a-z][\s\S]*?>/i.test(value)
148}
149
150/**
151 * Assembles the document content from a note's title and summary. Prefers the

Callers 1

buildContentFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected