Permalink
Browse files

Removing deprecated Text::EscapeXML(), use DBField->XML() instead

  • Loading branch information...
1 parent f41650c commit 9e7bdb3e9395a09daaab793b5edded2ea7e347ae @halkyon halkyon committed Nov 14, 2012
Showing with 1 addition and 11 deletions.
  1. +1 −11 model/fieldtypes/Text.php
View
12 model/fieldtypes/Text.php
@@ -78,17 +78,7 @@ public function LimitWordCount($numWords = 26, $add = '...') {
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('&amp;','&lt;','&gt;','&quot;'), $this->value);
- }
-
+
/**
* Return the value of the field with relative links converted to absolute urls.
* @return string

0 comments on commit 9e7bdb3

Please sign in to comment.