Refactored out render-net-html helper func.