Trilium Backend API
    Preparing search index...
    • Method for removing attributes by name.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • name: string

        Name of the attribute.

      Returns Cheerio<T>

      The instance itself.

      $('.pear').removeAttr('class').prop('outerHTML');
      //=> <li>Pear</li>

      $('.apple').attr('id', 'favorite');
      $('.apple').removeAttr('id class').prop('outerHTML');
      //=> <li>Apple</li>