Skip to content

How to add a X-ALT-DESC for rich text content (aka FMTTYPE=text/html) #610

Answered by axunonb
Dechiarad asked this question in Q&A
Discussion options

You must be logged in to vote

Your adding a property with name "X-ALT-DESC", and a value of "FMTTYPE=text/html:".
When rendering the property to ics, you get X-ALT-DESC:FMTTYPE=text/html:<html></html>. The colon is the separator between the name and the value by RFC definition. The value goes there untouched.
So the key is evt.AddProperty("X-ALT-DESC;FMTTYPE=text/html", "html></html>");
This will render the expected X-ALT-DESC;FMTTYPE=text/html:<html></html>

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by axunonb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #592 on October 15, 2024 20:42.