普通网友 2014-06-15 07:20
浏览 60
已采纳

php create ICS文件在描述中显示HTML标签

I'm working on a php class that wil extract data from a SQL table to a ICS file for microsoft outlook.

here is the code in dpaste, it will last for a year.

And here is the code that calls the class to create a appointment

It almost works except de description has all the HTML tags in it see this screenshot:

Has anyone a idea how to fix this?

enter image description here

  • 写回答

1条回答 默认 最新

  • duai3681 2014-06-16 02:04
    关注

    You seem to have a CRLF and spaces right before the X-ALT-DESC parameter so the client is handling it as part of the DESCRIPTION text, not as a parameter. You should remove all unnecessary CRLF and spaces in your code.

    Then, you are aware that this X-ALT-DESC parameter is not standard at all. Other clients will probably show the html tags as well.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Pyqt 如何正确的关掉Qthread,并且释放其中的锁?
  • ¥30 网站服务器通过node.js部署了一个项目!前端访问失败
  • ¥15 WPS访问权限不足怎么解决
  • ¥15 java幂等控制问题
  • ¥15 海湾GST-DJ-N500
  • ¥15 氧化掩蔽层与注入条件关系
  • ¥15 Django DRF 如何反序列化得到Python对象类型数据
  • ¥15 多数据源与Hystrix的冲突
  • ¥15 如何在线硕士了解,广告太多,希望有真实接触过的人回答下?(标签-学习|关键词-在线硕士)
  • ¥15 zabbix6.4与frp如何进行联动