Escape HTML tags in the history page output