code: protected function createNodes($content) {
          if (is_string($content)) {
              if (strpos($content, ' ') === false) {
                  $nodes = array(new $this->childClass($content, $this));
              } else {
                  $node = new $this->parserClass($content);
                  $nodes = $node->root->children;
              }
          } else {
              $nodes = (array)$content;
          }
          return $nodes;
      }
docs: Create an array of {@link DomNode} objects from their string representation.
  @param string|DomNode $content
  @return DomNode[]