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

This commit is contained in:
Sean Harvey 2012-11-15 11:27:38 +13:00
parent f41650c64f
commit 9e7bdb3e93

View File

@ -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('&amp;','&lt;','&gt;','&quot;'), $this->value);
}
/**
* Return the value of the field with relative links converted to absolute urls.
* @return string