Updated for html escaping in pre tags
Added publish service