Update code comments for escaping line terminator and HTML chars