Escapes special HTML characters in the input (unsafe) string.
Credits 'bjornd' (https://stackoverflow.com/questions/6234773/can-i-escape-html-special-chars-in-javascript)
Escapes special HTML characters in the input (unsafe) string.
Credits 'bjornd' (https://stackoverflow.com/questions/6234773/can-i-escape-html-special-chars-in-javascript)