A custom HTML element used to wrap secret blocks in HTML content in order to provide additional interactivity.

Hierarchy

  • HTMLElement
    • HTMLSecretBlockElement

Properties

tagName: string = "secret-block"

The HTML tag named used by this element.

Accessors

  • get revealed(): boolean

    The revealed state of the secret block.

    Returns boolean

  • get secret(): HTMLElement

    The wrapped secret block.

    Returns HTMLElement

Methods

  • Returns void

  • Toggle the secret revealed or hidden state in content that this secret block represents.

    Parameters

    • content: string

      The raw string content for this secret.

    Returns string

    The modified raw content.