diff --git a/api/etemplate.php b/api/etemplate.php
index c78823e723..ab21249905 100644
--- a/api/etemplate.php
+++ b/api/etemplate.php
@@ -263,7 +263,7 @@ function send_template()
return '';
}, $str);
- $str = preg_replace('#]+)(/|>#', '', $str);
+ $str = preg_replace('#]+)(/|>#', '', $str);
// fix -->
$str = preg_replace_callback('##s', function ($matches) use ($name)