html escape content (including newlines!!)
minor formatting changes to improve readability