Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10894 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35899 invoked by uid 1010); 4 Jul 2004 13:43:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35786 invoked from network); 4 Jul 2004 13:43:22 -0000 Received: from unknown (HELO iko.gotobg.net) (80.168.8.116) by pb1.pair.com with SMTP; 4 Jul 2004 13:43:22 -0000 Received: from pd9e615e3.dip.t-dialin.net ([217.230.21.227] helo=[192.168.0.8]) by iko.gotobg.net with asmtp (Exim 4.34) id 1Bh7HA-0002vk-HE; Sun, 04 Jul 2004 16:43:24 +0300 Message-ID: <40E82500.7040008@hristov.com> Date: Sun, 04 Jul 2004 15:40:48 +0000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040627 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nuno Lopes CC: PHPdev References: <005a01c461af$2e64de30$0100a8c0@pc07653> In-Reply-To: <005a01c461af$2e64de30$0100a8c0@pc07653> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] tidy->repairString and repairFile From: php@hristov.com (Andrey Hristov) Nuno Lopes wrote: > Hello, > > Today I was finishing writing the tidy docs and I've noted that the > functions $tidy->repairString() and $tidy->repairFile() simply don't work! > And I think these functions should be removed. I'll explain: > > non-OO way: > echo tidy_repair_string($html); > ?> > > OO way: > $tidy = new tidy; > var_dump($tidy->repairString($html)); > echo $html; > > ?> > > The non-OO way is very simple, you give it a broken HTML and it returns a > repaired HTML string. And in OO? It returns nothing! And why should you want > that function in OO? tidy_repair_string() is a one-time use only function. > Even if it exists in OO, you can't do anything with it (even if it > worked...) > > Can you delete those funtions, please (isn't really the functions, just the > OO mapping)? > > Thanks, > Nuno > Maybe John has to make this methods static and they will work just like the functions. Regards, Andrey