required php dom generator
<p>Hello I have some functions that generate HTML code snippets like</p>

<pre><code>echo "&lt;div class='thtphoto' id='xcyz''&gt;"
for($i = 0; $i &lt;count($aFotos); $i++) {

echo "&lt;div  onclick=\"selectPhoto('".aFotos[i]['url']. "'\")" class='miniphoto_on' id='div$i'"&gt;
....
...
..

}
</code></pre>

<p>if someone knows any class that I can use to create such HTML snippets using that class will be very helpful for me.</p>
