# escape\_ical

Source: https://zotonic.com/docs/1460/escape_ical

URI: https://zotonic.com/id/1460

Language: en



Escape the value according to the RFC2445 rules.

A double quote becomes `\"`; a comma becomes `\,`; a colon becomes `":"`; a semicolon becomes `\;`; a backslash becomes `\\` and a newline becomes `\n`.

It is also ensures that any single line is maximum 70 characters long by splitting the lines with newline/space combinations.

For example:

```django
{{ value|escape_ical }}
```

When the value is `abc:d;e` then the output is `abc":"d\;e`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1460?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1460?language=en>)
