Re: Regexp for xhtml compliant matching

From: Date: Wed, 03 Dec 2003 16:39:18 +0000
Subject: Re: Regexp for xhtml compliant matching
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24090@lists.php.net to get a copy of this message
Hi, Klaus, Perhaps I am displaying my ignorance, but...
add an embeded html document, and it's not so easy: <html>
    <head>
        <title />
    </head>
    <body>
        <p>some content</p>
        <!-- embedded documents are possible, -->
        <!-- though still rather uncommon -->
        <html>
            <head><title /></head>
            <body><p>some content</p></body>
        </html>
    </body>
</html>
Is it legal HTML (or XHTML) to have an HTML tag within another HTML tag? Not to start an XML discussion... -- Paul M. Jones Savant: the simple alternative to Smarty. http://phpsavant.com/

« previous php.pear.dev (#24090) next »