Should the Markdown Previewer project sanitize the input?

Hi everyone,

I am reading about code injection and sanitizing so I have a question. Should a project like the FCC Markdown Previewer make sure to sanitize the user’s text input? Or do you only have to worry if there is a backend to the project?

Thanks for any help!