html2text project allows you to convert HTML to Markdown and vice versa.
What's so great about html2text?
That's quite easy: Now you are able to edit your contents in both markdown and html (or wysiwyg). Whenever you like you can switch. That makes it for example possible to support multiple input formats in a cms and the user would be able to choose whatever fits him best.
If you don't get the idea, check that example out: Wysiwyg / Html / Markdown Editor
For discussion, suggestions, bugs etc. visit the Markdown mailing list, specifically this thread: html2text php. Alternatively you can send me an email or post a comment in the most recent blog entry about html2text.php.
html2text.php is only 24.4 KB big, you can download the latest version here. If you want to get more examples, check out the extended package, it includes all files of this website and a stripped version of TinyMCE - hence the much bigger file size.
What's New in This Release:
· handle empty < hr > and < br >