<?php
-use MediaWiki\MediaWikiServices;
use Wikimedia\TestingAccessWrapper;
/**
// We have to reset the core hook registration.
// to register the html hook
MessageCache::destroyInstance();
- $this->setMwGlobals( 'wgParser',
- MediaWikiServices::getInstance()->getParserFactory()->create() );
+ $this->overrideMwServices();
$msg = new RawMessage( '<html><script>alert("xss")</script></html>' );
$txt = '<span class="error"><html> tags cannot be' .