Skip to content

Commit ef692ec

Browse files
committed
Added comment for the unescape function
1 parent 129006e commit ef692ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/VCardParser.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,14 @@ protected function parseAddress($value)
308308
);
309309
}
310310

311+
/**
312+
* Unescape newline characters according to RFC2425 section 5.8.4.
313+
* This function will replace escaped line breaks with PHP_EOL.
314+
*
315+
* @link http://tools.ietf.org/html/rfc2425#section-5.8.4
316+
* @param string $text
317+
* @return string
318+
*/
311319
protected function unescape($text)
312320
{
313321
return str_replace("\\n", PHP_EOL, $text);

0 commit comments

Comments
 (0)