diff --git a/lib/server.js b/lib/server.js index 4da8277..7f47a90 100644 --- a/lib/server.js +++ b/lib/server.js @@ -57,6 +57,7 @@ function handleValue (value) { if (value.__encoded) return value if (typeof value === 'object') { + if (typeof value.outerHTML === 'string') return value.outerHTML return Object.keys(value).reduce(function (str, key, i) { if (str.length > 0) str += ' '