Add escapeHtml. Make fmtText work with null & undefined.
Cleanup