Thread:Extension talk:SolrStore/Unexpected XML tag doc/p/reply (5)

Instead of using the preg_replace, I now use MW's own XML sanitizer (Sanitizer::normalizeCharReferences) which should make any name/value XML conform. $this->output .= ''. Sanitizer::normalizeCharReferences ( $value ). ' ';