Update README.markdown

This commit is contained in:
Simon Cropp
2014-02-15 22:05:38 +11:00
parent a5ff1f3d22
commit c68620caf9
+1 -1
View File
@@ -65,7 +65,7 @@ embedded in them, as well as the text for a link:
```js
Handlebars.registerHelper('link_to', function() {
return "<a href='" + this.url + "'>" + this.body + "</a>";
return new Handlebars.SafeString("<a href='" + this.url + "'>" + this.body + "</a>");
});
var context = { posts: [{url: "/hello-world", body: "Hello World!"}] };