On Friday, 2 December 2011 12:57:41 UTC+1, euromark wrote: > > personally I would find it more interesting to know what has to be > "fixed" (missing closing p tag etc) > because one should ask himself why the output has to be fixed in the > first place. > after all its the own code which should have been valid from the start > (if its your layout/template stuff and not user input, of course). > if there is a closing tag missing you should add it in the code - and > not by some helper callback before outputting. > > so alerting the developer about invalid content in his templates would > probably be more helpful in the long run than > just fixing it at runtime all the time. > but then I dont know if tidy supports such debug information. >
Yes it does. I used it in this debug kit panel-helper https://github.com/AD7six/mi_development/blob/master/views/helpers/tidy.php AD > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
