Stone.js API
    Preparing search index...

    Function sanitizeAttrName

    • Escape an attribute NAME: only allow safe attribute-name characters, drop the rest. Prevents attribute injection when a head entry is built from untrusted keys.

      Parameters

      • name: string

        The raw attribute name.

      Returns string

      The sanitized attribute name (may be empty).