Const
The closing tag.
"}}"
The opening tag.
"{{"
The regular expression pattern for matching the end of a tag.
/\s*}}/g.
The regular expression pattern for matching tags.
/{{\s*?.*?\s*}}/g
The regular expression pattern for matching the start of a tag.
/{{\s*?/g.
// Example usage:
const text = 'Hello <<variable>>';
const result = replaceTags(text, { variable: 'world' }, Chevrons);
console.log(result); // Output: 'Hello world'
Generated using TypeDoc
Options for replacing tags using angle brackets (
<<
>>
). Matches tags of the form<<variable>>
in the text.