.. code-block:: jinja
{{ data|json_encode() }}
+
+.. note::
+
+ Internally, Twig uses the PHP `json_encode`_ function.
+
+.. _`json_encode`: http://php.net/json_encode
.. note::
- Internally, Twig uses the PHP `strip_tags`_ function to maintain index
- association.
+ Internally, Twig uses the PHP `strip_tags`_ function.
.. _`strip_tags`: http://php.net/strip_tags
.. code-block:: jinja
{{ data|url_encode() }}
+
+.. note::
+
+ Internally, Twig uses the PHP `urlencode`_ function.
+
+.. _`urlencode`: http://php.net/urlencode