Skip to content

Commit

Permalink
ICS: Remove X-ALT-DESC, use DESCRIPTION with strip_tags instead
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Dec 11, 2022
1 parent ef4ddbf commit 419b9f2
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/Generators/Ics.php
Expand Up @@ -51,7 +51,6 @@ public function generate(Link $link): string

if ($link->description) {
$url[] = 'DESCRIPTION:'.strip_tags($link->description);
$url[] = 'X-ALT-DESC;FMTTYPE=text/html:'.$this->escapeString($link->description);
}
if ($link->address) {
$url[] = 'LOCATION:'.$this->escapeString($link->address);
Expand Down
Expand Up @@ -15,7 +15,6 @@ Project link calendar-links

Thank you.

X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog.\nThere will be line breaks on it.\nProject link <a href="https://github.com/spatie/calendar-links">calendar-links</a>\n<img src="https://github-ads.s3.eu-central-1.amazonaws.com/calendar-links.jpg?t=1" width="419px" />\n<br>\nThank you.\n
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR
Expand Up @@ -9,7 +9,6 @@ DTSTART;TZID=UTC:20191231T230000
DTEND;TZID=UTC:20200101T010000
DESCRIPTION:With balloons, clowns and stuff
Bring a dog, bring a frog
X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR
Expand Up @@ -9,7 +9,6 @@ DTSTART:20180201
DURATION:P5D
DESCRIPTION:With balloons, clowns and stuff
Bring a dog, bring a frog
X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR
Expand Up @@ -9,7 +9,6 @@ DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DESCRIPTION:With balloons, clowns and stuff
Bring a dog, bring a frog
X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR
Expand Up @@ -9,7 +9,6 @@ DTSTART:20180201
DURATION:P1D
DESCRIPTION:With balloons, clowns and stuff
Bring a dog, bring a frog
X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR
Expand Up @@ -9,7 +9,6 @@ DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DESCRIPTION:With balloons, clowns and stuff
Bring a dog, bring a frog
X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR
Expand Up @@ -9,7 +9,6 @@ DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DESCRIPTION:With balloons, clowns and stuff
Bring a dog, bring a frog
X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR
Expand Up @@ -9,7 +9,6 @@ DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DESCRIPTION:With balloons, clowns and stuff
Bring a dog, bring a frog
X-ALT-DESC;FMTTYPE=text/html:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
END:VCALENDAR

0 comments on commit 419b9f2

Please sign in to comment.