On Wed, 8 Dec 2004 22:33:19 -0500, Matt Palermo <[EMAIL PROTECTED]> wrote:
> I am allowing users to imput HTML code into a textarea.  After they input
> this, I wany to output their HTML to the browser.  In order for the document
> to be safe, I need to close all open HTML tags that have been left open by
> the user, along with any open comments.  Is there a way to take an HTML
> string and add closing tags and comments to it if needed?

You might want to look at the html tidy functions for tidying and
repairing html:

   http://www.php.net/manual/en/ref.tidy.php

  -robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to