Mam kolejny (ostatni już) problem. Mianowicie dodaję sobie do xml'a :
$dziecko = $photo->addChild("description", "<![CDATA[".$desc."]]>");
Ale do pliku XML'a przechodzi to w ten sposób:
<description><![CDATA[<p class="subtitle">Zajęcia historyczne</p><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry</p>]]></description>
Oczywiście jak łatwo się domyślić, potrzebny mi efekt następujący:
<![CDATA[<p class="subtitle">Zajęcia historyczne</p><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry</p>]]>
W jaki sposób mogę ominąć to parsowanie znaków?