Vloop API
    Preparing search index...

    Function getBoolTagValue

    • Reads the first matching tag as true or false.

      Parameters

      • text: unknown

        Text to search. Falsy values are treated as empty text.

      • tagName: string

        Tag name, with or without angle brackets.

      • Optionaloptions: { fallback?: boolean; required?: boolean } = {}
        • Optionalfallback?: boolean

          Returned for a missing tag or unknown text. Defaults to false.

        • Optionalrequired?: boolean

          Throws when the tag is missing. Defaults to false.

      Returns boolean