<html>
<body>
<p>
var encoded = System.Web.HttpUtility.HtmlEncode(html);
</p>
<p>
var encoded = System.<wbr>Web.<wbr>HttpUtility.<wbr>HtmlEncode(html);
</p>
</body>
</html>
The wbr element marks a word break opportunity; a position in the text where the browser can insert a word or line break.
A live example:
var encoded = System.Web.HttpUtility.HtmlEncode(html);
var encoded = System.
N of