replacing < and > for &lt; and &gt; when showing log messages