我正在尝试添加一个链接到雅虎日历事件,就像这样
https://calendar.yahoo.com/?v=60&DESC=Client%20Info%3A<br>Name%3A%20Hello%20World<br>&ST=20180630T070000&DUR=0100但是事件描述出现在同一行中。其他的都没问题。有没有人能建议我如何在DESC中添加换行符,使其如下所示
Client Info
Name: Hello WorldPS:同样的描述在google日历api中工作得很好。
发布于 2019-01-14 05:51:42
要换行,请使用%0d%0a (编码的CRLF或\r\n)或%0a (编码的LF或\n)。
示例:
https://calendar.yahoo.com/?v=60&st=st20201231T193000&DUR=0200&desc=With%20clowns%0aand%20stuff&in_loc=North%20Pole有关更多详细信息,请查看此文档:https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/blob/master/services/yahoo.md
https://stackoverflow.com/questions/50998928
复制相似问题