Use htmlspecialchars not htmlentities to escape tags on Version.