Const
Options for replacing tags using double curly braces with percent signs ({{% %}}). Matches tags of the form {{%variable%}} in the text.
{{%
%}}
{{%variable%}}
// Example usage:const text = 'Hello {{%variable%}}';const result = replaceTags(text, { variable: 'world' }, DoubleCurlyBracesWithPercentSigns);console.log(result); // Output: 'Hello world' Copy
// Example usage:const text = 'Hello {{%variable%}}';const result = replaceTags(text, { variable: 'world' }, DoubleCurlyBracesWithPercentSigns);console.log(result); // Output: 'Hello world'
Generated using TypeDoc
Options for replacing tags using double curly braces with percent signs (
{{%
%}}
). Matches tags of the form{{%variable%}}
in the text.