diff --git a/src/components/toast/toast.js b/src/components/toast/toast.js index 5a9cf0cd87..ea3a8e57df 100644 --- a/src/components/toast/toast.js +++ b/src/components/toast/toast.js @@ -22,7 +22,7 @@ export default function (options) { const elem = document.createElement('div'); elem.classList.add('toast'); - elem.innerHTML = options.text; + elem.textContent = options.text; document.body.appendChild(elem);