Trilium Backend API
    Preparing search index...
    • Render the document as text.

      This returns the textContent of the passed elements. The result will include the contents of <script> and <style> elements. To avoid this, use .prop('innerText') instead.

      Parameters

      Returns string

      The rendered document.