Skip to content

Inproper Chars in XML #8

@TigerWolf

Description

@TigerWolf

I get an error:

XML Parsing Error: not well-formed

Most likely due to an & symbol in the xml. It needs to be changed to an &?

I did this quick hack to get rid of my error:
Line 250 of the class file in the model folder.

  $children = $child->get('children');

  if ($this->config['parentTitles']) {
    if ($this->config['parentTitlesReversed']) {
      array_unshift($this->parentTitles, $child->get('pagetitle'));
    } else {
      $this->parentTitles[] = str_replace('&', '&',$child->get('pagetitle'));
    }
    $title = implode($this->config['titleSeparator'], $this->parentTitles);
  } else {
    $title = str_replace('&', '&',$child->get('pagetitle'));
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions