var $args = array(); // arguments..
var $role;
- function fromXmlNode($node) {
+ function fromXmlNode($node)
+ {
parent::fromXmlNode($node);
+ $this->content = $node->textContent;
+
+ $this->parse();
+ }
+
+ function fromNode($node)
+ {
+ parent::fromNode($node);
+
+ $this->content = $node->content;
+
+ $this->parse();
+ }
+ function parse()
+ {
$this->x = false;
$this->y = false;
- $this->content = $node->textContent;
/*
if (isset($this->x)) {
unset($this->x);
$trans = array_flip(get_html_translation_table(HTML_ENTITIES));
}
- if (strlen($this->content)) {
+ if (!empty($this->content) && strlen($this->content)) {
// convert & etc.
if (strpos($this->content,'&') !== false) {
$this->content = strtr($this->content, $trans);