普通网友 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 u盘问题:盘符不显示 无媒体
  • ¥50 R语言读取nc按月均值转为tif
  • ¥30 智能车串级pid调参
  • ¥15 visual studio code翻译老是错误
  • ¥20 卫星测高数据的高程转换
  • ¥15 爬取招聘网站数据信息
  • ¥15 安装完tensorflow,import tensorflow as tf后报错,如何解决?
  • ¥15 ultralytics库导出onnx模型,模型失去预测能力
  • ¥15 linux下点对点协议连接2个USB串口的硬件流量控制问题
  • ¥15 SQL数据自动生成问题