MCPcopy
hub / github.com/microfeed/microfeed / htmlMetaDescription

Function htmlMetaDescription

common-src/StringUtils.js:223–227  ·  view source on GitHub ↗
(str, isHtml = true)

Source from the content-addressed store, hash-verified

221}
222
223export function htmlMetaDescription(str, isHtml = true) {
224 const text = isHtml ? htmlToPlainText(str) : str;
225 // https://moz.com/learn/seo/meta-description
226 return truncateString(text, 155);
227}
228
229/**
230 * Admin urls

Callers 2

renderMethod · 0.90
renderMethod · 0.90

Calls 2

htmlToPlainTextFunction · 0.85
truncateStringFunction · 0.85

Tested by

no test coverage detected