Skip to content

Commit

Permalink
Fix sudodoki#14: replace innerHTML with innerText
Browse files Browse the repository at this point in the history
  • Loading branch information
IonutLaceanu committed Jan 27, 2016
1 parent 540a0f5 commit 8e06a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -43,4 +43,4 @@ function copy(text) {
}
}

module.exports = copy;
module.exports = copy;

0 comments on commit 8e06a7e

Please sign in to comment.