mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-05 15:48:31 +02:00
Removing deprecated Text::EscapeXML(), use DBField->XML() instead
This commit is contained in:
parent
f41650c64f
commit
9e7bdb3e93
@ -78,16 +78,6 @@ class Text extends StringField {
|
|||||||
public function NoHTML() {
|
public function NoHTML() {
|
||||||
return strip_tags($this->value);
|
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 the value of the field with relative links converted to absolute urls.
|
||||||
|
Loading…
Reference in New Issue
Block a user