Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix unsafe bytes to actually print as a string

  • Loading branch information...
commit 43a67c490e9e7ee57a718500eaa46cde4bb671e0 1 parent db27cde
@daaku authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  unsafe_bytes.go
View
2  unsafe_bytes.go
@@ -12,5 +12,5 @@ func (u UnsafeBytes) HTML() (HTML, error) {
}
func (u UnsafeBytes) Write(w io.Writer) (int, error) {
- return fmt.Fprint(w, u)
+ return fmt.Fprintf(w, "%s", u)
}
Please sign in to comment.
Something went wrong with that request. Please try again.