From dcfda9521ba7a05d739081a678fa8d0da2e24220 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Sun, 11 Feb 2018 14:02:40 -0800 Subject: [PATCH] nit: use 'html/raw' instead of html() where possible --- app/pages/legal.js | 7 ++++--- app/pages/share.js | 9 +++++---- app/templates/uploadPasswordSet.js | 9 +++++---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/app/pages/legal.js b/app/pages/legal.js index af196ab9..3b92b4d1 100644 --- a/app/pages/legal.js +++ b/app/pages/legal.js @@ -1,4 +1,5 @@ const html = require('choo/html'); +const raw = require('choo/html/raw'); function replaceLinks(str, urls) { let i = -1; @@ -6,7 +7,7 @@ function replaceLinks(str, urls) { i++; return `${v}`; }); - return [`
${s}
`]; + return `
${s}
`; } module.exports = function(state) { @@ -14,14 +15,14 @@ module.exports = function(state) {