public function FeedsEnclosure::getUrlEncodedValue in Feeds 7.2
Use this method instead of FeedsElement::getValue() when fetching the file from the URL.
Return value
Value with encoded space characters to safely fetch the file from the URL.
See also
1 call to FeedsEnclosure::getUrlEncodedValue()
- FeedsEnclosure::getContent in plugins/
FeedsParser.inc - Downloads the content from the file URL.
File
- plugins/
FeedsParser.inc, line 367 - Contains FeedsParser and related classes.
Class
- FeedsEnclosure
- Enclosure element, can be part of the result array.
Code
public function getUrlEncodedValue() {
return str_replace(' ', '%20', $this
->getValue());
}