From 8e06a7eb29e224e73aed30a7febe9475c5c1a3c2 Mon Sep 17 00:00:00 2001 From: Ionut Laceanu Date: Wed, 27 Jan 2016 23:59:26 +0200 Subject: [PATCH] Fix #14: replace innerHTML with innerText --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1553f4d..0034970 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ function copy(text) { selection = document.getSelection(); mark = document.createElement('mark'); - mark.innerHTML = text; + mark.innerText = text; document.body.appendChild(mark); range.selectNode(mark); @@ -43,4 +43,4 @@ function copy(text) { } } -module.exports = copy; \ No newline at end of file +module.exports = copy;