summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/safe-string.js
diff options
context:
space:
mode:
authorKevin Decker <kpdecker@gmail.com>2014-11-08 17:47:25 -0600
committerKevin Decker <kpdecker@gmail.com>2014-11-08 17:47:25 -0600
commite779ecf12dade0aba530610b37dc28a57d946c9d (patch)
tree478023b34939cc270e62519e4f3e6aeb51da7a34 /lib/handlebars/safe-string.js
parentc8af90f697c48d41e65fe84d5496e4cc0b31f74a (diff)
parent01a22e61df48eb512ba5dc0316855c1a8dd25956 (diff)
downloadhandlebars.js-e779ecf12dade0aba530610b37dc28a57d946c9d.zip
handlebars.js-e779ecf12dade0aba530610b37dc28a57d946c9d.tar.gz
handlebars.js-e779ecf12dade0aba530610b37dc28a57d946c9d.tar.bz2
Merge pull request #890 from wycats/to-html-safe
Use toHTML vs. instanceof checks for SafeString
Diffstat (limited to 'lib/handlebars/safe-string.js')
-rw-r--r--lib/handlebars/safe-string.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/safe-string.js b/lib/handlebars/safe-string.js
index 2ae49aa..a6b8ecf 100644
--- a/lib/handlebars/safe-string.js
+++ b/lib/handlebars/safe-string.js
@@ -3,7 +3,7 @@ function SafeString(string) {
this.string = string;
}
-SafeString.prototype.toString = function() {
+SafeString.prototype.toString = SafeString.prototype.toHTML = function() {
return "" + this.string;
};