Convert the string to single quoted and manually escape it.
authorPlatonides <platonides@users.mediawiki.org>
Thu, 27 Oct 2011 21:18:01 +0000 (21:18 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 27 Oct 2011 21:18:01 +0000 (21:18 +0000)
commit58c4ae9c79383c1d541f00ed7f8abb43d1099a5a
treee1773f7baa9c0df9bfafb375f0a293758f08104d
parentb0a7defa7f41c4efc43b508f9f34a22a046ac01c
Convert the string to single quoted and manually escape it.
http://us.php.net/manual/en/language.types.string.php

addslashes() is convenient, but this way we have no legitimate
usage, and it's easier to have it banned everywhere.
tests/phpunit/includes/parser/MediaWikiParserTest.php