I am creating a script which will generate a .ics file in PHP however when I try to add more than one line to the DESCRIPTION: addition to the attachment it shows up as a new line entirely in the .ics What I type into the php
$var .= "DESCRIPTION: Line1\nLine2" . PHP_EOL;
What is shown in the .ics file
DESCRIPTION: Line1
Line2
Any ideas on how to get around this problem when generating the .ics code in PHP?
Try making a description with more than 1 line in an application that allows you to make ics files. Then open it in notepad++/sublime or something and see how they parse it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.