PHP Classes

CDATA indentation incorrect

Recommend this page to a friend!

      Beauty XML  >  All threads  >  CDATA indentation incorrect  >  (Un) Subscribe thread alerts  
Subject:CDATA indentation incorrect
Summary:small patch...
Messages:1
Author:zwfx
Date:2011-02-03 11:00:00
 

  1. CDATA indentation incorrect   Reply   Report abuse  
Picture of zwfx zwfx - 2011-02-03 11:00:01
Hi there...

I adjusted line 74++ from

----------------------- 8< -------------------------
if ($add && !@in_array($lan, $stab) && $lan != '') {
array_push($stab, $lan);
}
----------------------- >8 -------------------------

to

----------------------- 8< -------------------------
if ($add && !@in_array($lan, $stab) && $lan != '' && substr(trim($tmp[$a]),0,9)!='<![CDATA[') {
array_push($stab, $lan);
}
----------------------- >8 -------------------------

in order to have correct indentation for CDATA sections.

kr, zara

 
For more information send a message to info at phpclasses dot org.