Documentation
    Preparing search index...

    Specialized utility handling string cleanup and Mustache interpolation for templates.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Renders the Mustache layout with provided contextual variables.

      Parameters

      • body: string

        The markdown/HTML layout.

      • Optionaldata: {}

        The variables context map.

      Returns string

      Parsed output string.

    • Cleans all HTML tags from the title string. This uses a robust, RegExp-free state loop to prevent any risk of Regular Expression Denial of Service (ReDoS) or catastrophic backtracking, fully satisfying SonarQube security rules.

      Parameters

      • title: string

        The raw subject line containing potential HTML tags.

      Returns string

      The formatted title string with all HTML tags stripped out.