tpl/strings: Fix broken test
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 17 Dec 2017 17:06:55 +0000 (18:06 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 17 Dec 2017 17:06:55 +0000 (18:06 +0100)
tpl/strings/init.go

index dc674c52207e8eb6e2b3aee3fa9397a6eb37d2dd..54009b897bbcb58cb7c5341923341d820b7a44d7 100644 (file)
@@ -32,7 +32,7 @@ func init() {
                ns.AddMethodMapping(ctx.Chomp,
                        []string{"chomp"},
                        [][2]string{
-                               {`{{chomp "<p>Blockhead</p>\n" }}`, `<p>Blockhead</p>`},
+                               {`{{chomp "<p>Blockhead</p>\n" | safeHTML }}`, `<p>Blockhead</p>`},
                        },
                )