mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-03 22:58:24 +02:00
Removing deprecated Text::EscapeXML(), use DBField->XML() instead
This commit is contained in:
parent
f41650c64f
commit
9e7bdb3e93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user