Description
Decode only defined iCalendar TEXT escapes, including uppercase N for newline; malformed escape and raw line endings reject.
iCalendar separates content-line framing, property values, parameters and component nesting. TEXT escaping protects separators, while line folding is based on encoded octets. DATE, floating time, UTC and named-zone representations carry different information; a token-level operation does not resolve a timezone or expand recurrence rules.1
Decode only defined iCalendar TEXT escapes, including uppercase N for newline; malformed escape and raw line endings reject.
When to use this tool
Use this tool to decode only defined iCalendar TEXT escapes, including uppercase N for newline; malformed escape and raw line endings reject.
How to use the tool and how it works
- Enter text using the field definitions below.
- Run the operation. Correct input errors before interpreting an output.
- Read result.text. Use the ordering, boundary rules and absence conditions described below.
Decode escaped comma, semicolon, backslash and n/N newline markers. Reject literal line breaks, unknown escapes and an unfinished backslash.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| text | TEXT-value or folded-content text under the stated operation; JSON escapes show actual backslashes and line endings. | Text, at most 8,192 UTF-16 code units; the operation’s grammar also applies. |
| Output field | Interpretation |
|---|---|
| result | Object containing the named fields below. |
| result.text | Decoded or joined TEXT-value string under the stated escaping operation. |
{
"input": {
"text": "a\\,b\\;c\\nx"
},
"output": {
"result": {
"text": "a,b;c\nx"
}
}
} Limitations and assumptions
- This handles an iCalendar TEXT value, not arbitrary content-line or parameter escaping.
- Content spans use zero-based UTF-16 offsets; fold limits use UTF-8 bytes including the continuation space. Token helpers handle the stated subset only, without a timezone database, recurrence engine or calendar import.
- Every declared top-level input field is required and unexpected fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
- Numeric outputs must be finite and no larger in absolute magnitude than the safe-integer limit; operations returning exact large integers use decimal text. Positions are zero-based and spans end exclusively unless the operation explicitly states a different convention.
Alternative or Complementary methods
Keep content-line syntax, value escaping and timezone interpretation separate. Use a complete iCalendar implementation for recurrence expansion, timezone transitions and property-specific validation.
References
Similar or alternative tools
- iCalendar Text List Value Joiner
Format a literal iCalendar TEXT-list with per-value escaping, preserving empty elements and source order; no property-specific semantics.
- iCalendar Text List Value Splitter
Split an iCalendar TEXT-list only at unescaped commas, then decode defined TEXT escapes; repeated empty elements remain explicit.