Clamp an extended description to EXTENDED_DESCRIPTION_MAX_LENGTH
characters using the same sentence-boundary-preserving logic as
truncateDescription. Returns '' when the input is empty
or shorter than the meta-description maximum (no point in emitting
an "extended" description that's actually shorter than the regular
one).
Parameters
text: string
Raw extended-description text (e.g. full BLUF paragraph)
Returns string
Truncated extended description, or '' when not worth emitting
Clamp an extended description to EXTENDED_DESCRIPTION_MAX_LENGTH characters using the same sentence-boundary-preserving logic as truncateDescription. Returns
''when the input is empty or shorter than the meta-description maximum (no point in emitting an "extended" description that's actually shorter than the regular one).