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' }, DoubleUnderscores);console.log(result); // Output: 'Hello world' Copy
// Example usage:const text = 'Hello __variable__';const result = replaceTags(text, { variable: 'world' }, DoubleUnderscores);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.