SECURITY: Escape thread subject on history page

Prevent users from being able to have other people's browsers (e.g.) run malicious scripts

Bug: 53320

Change-Id: I2b74a412fc260f67adfde859d83653e81b457963
(cherry picked from commit fc1672e4cf373dc29fe84c50cc5ff03f45da7dee)