Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 542 Bytes

filter_escape_ical.rst

File metadata and controls

19 lines (12 loc) · 542 Bytes

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:

{{ value|escape_ical }}

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

.. seealso:: :ref:`filter-escape`