@newspapper/core
    Preparing search index...

    Function capUtf8

    • Cut html to at most maxBytes of UTF-8, never inside a character. The markup may end mid-tag; the UI's sanitizer closes what it keeps.

      Parameters

      • html: string
      • maxBytes: number = MAX_CONTENT_HTML_BYTES

      Returns string