PHPTAL DOM

Internally PHPTAL represents documents using it's own document object model, a little bit similar to W3C's DOM. However, PHPTAL's API has only few basic methods for DOM manipulation.

PHPTAL_Dom_Element class has following properties and methods:

Text, CDATA and attribute nodes have getValueEscaped() and setValueEscaped() methods which allow reading/setting of their text with entities preserved.