mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Deprecated Text->EscapeXML(), use DBField->XML() instead
This commit is contained in:
parent
618d767dcb
commit
6ecf7ffe84
@ -75,9 +75,12 @@ class Text extends StringField {
|
||||
}
|
||||
/**
|
||||
* Return the value of the field with XML tags escaped.
|
||||
*
|
||||
* @deprecated 3.0 Use DBField->XML() instead.
|
||||
* @return string
|
||||
*/
|
||||
function EscapeXML() {
|
||||
Deprecation::notice('3.0', 'Use DBField->XML() instead.');
|
||||
return str_replace(array('&','<','>','"'), array('&','<','>','"'), $this->value);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<item>
|
||||
<title>$Title.XML</title>
|
||||
<link>$AbsoluteLink</link>
|
||||
<% if Description %><description>$Description.AbsoluteLinks.EscapeXML</description><% end_if %>
|
||||
<% if Description %><description>$Description.AbsoluteLinks.XML</description><% end_if %>
|
||||
<% if Date %><pubDate>$Date.Rfc822</pubDate>
|
||||
<% else %><pubDate>$Created.Rfc822</pubDate><% end_if %>
|
||||
<% if Author %><dc:creator>$Author.XML</dc:creator><% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user