Added htmlentities replacement and added a tag around urls.