summaryrefslogtreecommitdiffstats
path: root/README.markdown
diff options
context:
space:
mode:
authorKevin Decker <kpdecker@gmail.com>2014-03-05 18:24:59 -0600
committerKevin Decker <kpdecker@gmail.com>2014-03-05 18:24:59 -0600
commitd33ae150cda7e2538177d7b0f06f7e1feb16aafc (patch)
tree706902523a0d5d3efc04eb87435933c31d130314 /README.markdown
parent8347ee25916f5f1796c211a6555f674011f89b6b (diff)
parentc68620caf9f22032a4b2e44fb2d181e37aa89bd1 (diff)
downloadhandlebars.js-d33ae150cda7e2538177d7b0f06f7e1feb16aafc.zip
handlebars.js-d33ae150cda7e2538177d7b0f06f7e1feb16aafc.tar.gz
handlebars.js-d33ae150cda7e2538177d7b0f06f7e1feb16aafc.tar.bz2
Merge pull request #740 from SimonCropp/patch-1
Update README.markdown
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 97dcf3a..e2c392f 100644
--- a/README.markdown
+++ b/README.markdown
@@ -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!"}] };