calendar-links icon indicating copy to clipboard operation
calendar-links copied to clipboard

ics download description field includes html entities

Open rch77 opened this issue 1 year ago • 0 comments

Context

  1. PHP Version: <!-- php -v --!> 8.2.11

  2. Package version: 1.8.5

Describe the Bug

Google calendar expects details (description) field to be html, while ics download tries to convert the same to plain text using strip_tags() php function. It leaves html entities like &nbsp; showing in the plain text. It should use html_entity_decode() in addition to strip_tags().

Expected Behavior

Do not see &nbsp; in ics description output.

DESCRIPTION: with plain text
X-ALT-DESC;FMTTYPE=text/HTML: with html

rch77 avatar Nov 01 '23 01:11 rch77