Text from a visitor must not be treated as markup.
Acceptance criteria
- 1.#out should show no image made.
Text from a visitor must not be treated as markup.
const fromUser = "<img src=x alt=bad>"; document.getElementById("box").innerHTML = fromUser; document.querySelector('#out').textContent = document.querySelectorAll("img").length > 0 ? "an image was made" : "no image made";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.