public function ParserIcalCreator::formatText in iCal feed parser 7.2
Format text fields.
@todo is \n \N handling correct?
File
- includes/
ParserIcalCreator.inc, line 140 - Basic classes.
Class
- ParserIcalCreator
- @file Basic classes.
Code
public function formatText($property_key, $property, ParserIcalComponentInterface $item, FeedsParserResult $result, FeedsSource $source) {
$text = $property['value'];
$text = str_replace(array(
"\\n",
"\\N",
), "\n", $text);
return $text;
}