Vloop API
    Preparing search index...

    Function replaceTags

    • Replaces every {name} placeholder with tags.name converted to text.

      Parameters

      • text: unknown

        Template text. Falsy values are treated as empty text.

      • tags: Record<string, unknown> | undefined = {}

        Placeholder values. Null and undefined become empty text.

      • Optionaloptions: { strict?: boolean } = {}
        • Optionalstrict?: boolean

          Throws when a simple placeholder remains. Defaults to false.

      Returns string