Hi Jonathon

I suggest one or more of the following three options:

1 running the markup through Tidy - http://au.php.net/tidy
(You'll have to compile PHP with Tidy - more at link above).
2 using an HTML4.0 transitional doctype for the pages that display 3rd
party markup.
3 use strip_tags to remove unwanted markup from the 3rd party stuff -
http://au.php.net/manual/en/function.strip-tags.php

HTH
James


On Sun, 28 Nov 2004 08:54:03 +0200, Mordechai Peller <[EMAIL PROTECTED]> wrote:
> Jonathan T. Sage wrote:
> 
> >I was wondering if there is an easy way to tell the
> >browser to render just a section of the page in a HTML4 mode, to avoid
> >it bombing out.
> >
> You could use an object tag, but it would suffer from most of the
> negatives of an iframe.
> 
> If you choose to have PHP parse the HTML, as Rob suggested, I believe
> there are some tools available. You may find something at
> http://pear.php.net or http://sourceforge.net/. I think HTML Tidy is a
> possibility (http://tidy.sourceforge.net/).
> 
> 
> ******************************************************
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> ******************************************************
> 
>
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to