diff --git a/script.js b/script.js index d6058e7..7b106c5 100644 --- a/script.js +++ b/script.js @@ -77,11 +77,11 @@ const displayPost = function(post) {
-

${post.account.display_name}

+

${DOMPurify.sanitize(post.account.display_name)}

${post.media_attachments[0] ? `` : ''} -

${post.content}

- ${post.spoiler_text ? `

${post.spoiler_text}

` : ''} +

${DOMPurify.sanitize(post.content)}

+ ${post.spoiler_text ? `

${DOMPurify.sanitize(post.spoiler_text)}

` : ''}

${timeAgo(secondsAgo(new Date(post.created_at)))}