peterbraden/node-ical — Issue #6: Un-escaping required for text fields
Author: drauschenbach
Created: 2011-11-05 09:00:58+00:00
State: open

The following character sequences need to be un-escaped, for all text fields: `\\`, `\;`, and `\,`.

RFC 2445 section 4.3.11:

text = *(TSAFE-CHAR / ":" / DQUOTE / ESCAPED-CHAR)
; Folded according to description above
ESCAPED-CHAR = "\\" / "\;" / "\," / "\N" / "\n")
; \\ encodes \, \N or \n encodes newline
; \; encodes ;, \, encodes ,

Sample LOCATION field from a VEVENT:

LOCATION:223 TWIN DOLPHIN DR\, Redwood City\, CA\, 94065-1514