Const
Options for replacing tags using double underscores (__ __). Matches tags of the form __variable__ in the text.
__
__variable__
// Example usage:const text = 'Hello __variable__';const result = replaceTags(text, { variable: 'world' }, Dunders);console.log(result); // Output: 'Hello world' Copy
// Example usage:const text = 'Hello __variable__';const result = replaceTags(text, { variable: 'world' }, Dunders);console.log(result); // Output: 'Hello world'
Generated using TypeDoc
Options for replacing tags using double underscores (
____). Matches tags of the form__variable__in the text.