From 9e7bdb3e9395a09daaab793b5edded2ea7e347ae Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 15 Nov 2012 11:27:38 +1300 Subject: [PATCH] Removing deprecated Text::EscapeXML(), use DBField->XML() instead --- model/fieldtypes/Text.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/model/fieldtypes/Text.php b/model/fieldtypes/Text.php index 392bafa02..822d4a535 100644 --- a/model/fieldtypes/Text.php +++ b/model/fieldtypes/Text.php @@ -78,17 +78,7 @@ class Text extends StringField { public function NoHTML() { return strip_tags($this->value); } - /** - * Return the value of the field with XML tags escaped. - * - * @deprecated 3.0 Use DBField->XML() instead. - * @return string - */ - public function EscapeXML() { - Deprecation::notice('3.0', 'Use DBField->XML() instead.'); - return str_replace(array('&','<','>','"'), array('&','<','>','"'), $this->value); - } - + /** * Return the value of the field with relative links converted to absolute urls. * @return string