/ Published in: PHP
                    
                                        For some reason tidy inserts new lines before/after 
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 # command line/exec(),etc. or use the php functions to tidy up your document tidy -indent -utf8 -xml -wrap 1000 input.xml > output.xml <?php /** * Replaces invalid: * <element> * <![CDATA[whatever content]]> * </element> * * With well-formed: * <element><![CDATA[whatever content]]></element> */ ?>
Comments
                    Subscribe to comments
                
                