sanitize and markdown entry content