Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 497 Bytes

notion-utils.gettextcontent.md

File metadata and controls

15 lines (9 loc) · 497 Bytes

Home > notion-utils > getTextContent

getTextContent variable

Gets the raw, unformatted text content of a block's content value.

This is useful, for instance, for extracting a block's title without any rich text formatting.

Signature:

getTextContent: (text?: types.Decoration[]) => string