On 14 Oct 2010, at 19:13, Levi Stanley wrote:

> $node->setValueEscaped($url);

Unfortunately PHPTAL's DOM isn't quite like W3C DOM and doesn't support setting 
value on Elements. You'll need to create a text node in there:

> foreach($node->childNodes as $n) {
>     $node->removeChild($n);
> }
> $node->appendChild(new PHPTAL_Dom_Text(htmlspecialchars($url),'UTF-8'));

I'd like to switch PHPTAL to real W3C DOM, but so far I haven't found a way to 
reliably manage namespace prefixes :(

-- 
regards, Kornel


_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to