Escapes the given string of HTML by replacing control chars with their HTML entities.
The text that should be escaped.