Prevent XSS attacks in "Recently visited" list

Thanks, b3hr0uz @ HackerOne!