my own fixes

changed content type, added linkification, changed from htmlentities to htmlspecialchars