An HTML-to-markdown conversion helper for PHP