HTML to Plain Text


/ Published in: PHP
Save to your folder(s)

This function takes HTML input and converts it to plain text. It needs improvement so that it converts multiple blank lines to a single blank line and converts an <a ... > link to the markup equivalent (same for images). It should be rewritten to using a DOM/XML parser.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.