MCPcopy
hub / github.com/npmx-dev/npmx.dev / getHeadingPlainText

Function getHeadingPlainText

server/utils/readme.ts:209–211  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

207}
208
209function getHeadingPlainText(text: string): string {
210 return decodeHtmlEntities(stripHtmlTags(text).trim())
211}
212
213function getHeadingSlugSource(text: string): string {
214 return stripHtmlTags(text).trim()

Callers 1

renderReadmeHtmlFunction · 0.85

Calls 2

decodeHtmlEntitiesFunction · 0.90
stripHtmlTagsFunction · 0.90

Tested by

no test coverage detected