src/Pakettikauppa/SimpleXMLElement.php
public function addChild($key, $value = null, $namespace = null)
  {
    if ( $value != null )
    {
      $value = htmlspecialchars($value, ENT_XML1);
    }

    return parent::addChild($key, $value, $namespace);
  }
public function addChild($key, $value = null, $namespace = null)
  {
    if ( $value != null )
    {
      $value = htmlspecialchars($value, ENT_XML1);
    }

    return parent::addChild($key, $value, $namespace);
  }
Escapes input text

@param string
@param string