Browse Source

Mention that fasttemplate doesn't do automatic escaping on template values

Aliaksandr Valialkin 10 năm trước cách đây
mục cha
commit
6193b71b8b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      README.md

+ 4 - 0
README.md

@@ -6,6 +6,10 @@ Simple and fast template library for Go.
 Fasttemplate peforms only a single task - it substitutes template placeholders
 with user-defined values. At high speed :)
 
+*Please note that fasttemplate doesn't do any escaping on template values
+unlike [html/template](http://golang.org/pkg/html/template/) do. So values
+must be properly escaped before passing them to fasttemplate.*
+
 Fasttemplate is faster than [text/template](http://golang.org/pkg/text/template/),
 [strings.Replace](http://golang.org/pkg/strings/#Replace),
 [strings.Replacer](http://golang.org/pkg/strings/#Replacer)