Skip to content

Commit

Permalink
Use textContent instead of innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing committed Mar 10, 2018
1 parent 193448f commit b656e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const malarkey = require('malarkey')

const element = document.querySelector('.typewriter')
function callback (text) {
element.innerHTML = text
element.textContent = text
}
const options = {
typeSpeed: 50,
Expand Down

0 comments on commit b656e01

Please sign in to comment.