BUGFIX Fix to Convert::xml2raw() for '

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@71325 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-02-03 23:17:01 +00:00
parent 4822c68947
commit b34713dffc

View File

@ -128,7 +128,7 @@ class Convert extends Object {
// For simpler stuff, a simple str_replace will do
else {
$converted = str_replace(array('&amp;', '&lt;', '&gt;'), array('&', '<', '>'), $val);
$converted = str_replace(array('&amp;', '&lt;', '&gt;', '&apos;'), array('&', '<', '>', "'"), $val);
$converted = ereg_replace('&#[0-9]+;', '', $converted);
return $converted;
}