Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inproper Chars in XML #8

Open
TigerWolf opened this issue May 23, 2011 · 1 comment
Open

Inproper Chars in XML #8

TigerWolf opened this issue May 23, 2011 · 1 comment

Comments

@TigerWolf
Copy link

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'));
  }
@yogoo
Copy link
Contributor

yogoo commented Mar 28, 2012

fixed in 6414ed6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants