From 4eb02560ea2fb5f8ea7e2f52d10f4a28672da01f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 21 May 2026 14:45:29 +0200 Subject: [PATCH] Remove versionadded in docs --- doc/advanced.rst | 4 ---- doc/filters/escape.rst | 4 ---- doc/filters/html_attr_merge.rst | 4 ---- doc/filters/html_attr_type.rst | 4 ---- doc/functions/html_attr.rst | 4 ---- 5 files changed, 20 deletions(-) diff --git a/doc/advanced.rst b/doc/advanced.rst index e59783b4a..c54bf3434 100644 --- a/doc/advanced.rst +++ b/doc/advanced.rst @@ -219,10 +219,6 @@ the first argument to the filter call (or the second one if Sandbox-aware Filters ~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 3.25 - - The ``needs_is_sandboxed`` option was added in Twig 3.25. - If you want to know whether the current template is sandboxed in your filter, set the ``needs_is_sandboxed`` option to ``true``; Twig will pass the current sandbox state as a boolean to the filter call (as the first diff --git a/doc/filters/escape.rst b/doc/filters/escape.rst index 050797a0a..291d10869 100644 --- a/doc/filters/escape.rst +++ b/doc/filters/escape.rst @@ -63,10 +63,6 @@ documents: aware that in some processing contexts like XML, characters like the colon ``:`` may have meaning like for XML namespace separation. -.. versionadded:: 3.24 - - The ``html_attr_relaxed`` strategy has been added in 3.23. - Note that doing contextual escaping in HTML documents is hard and choosing the right escaping strategy depends on a lot of factors. Please, read related documentation like `the OWASP prevention cheat sheet diff --git a/doc/filters/html_attr_merge.rst b/doc/filters/html_attr_merge.rst index 66f2efa7a..18e043c05 100644 --- a/doc/filters/html_attr_merge.rst +++ b/doc/filters/html_attr_merge.rst @@ -3,10 +3,6 @@ .. _html_attr_merge: -.. versionadded:: 3.24 - - The ``html_attr_merge`` filter was added in Twig 3.24. - The ``html_attr_merge`` filter merges multiple mappings that represent HTML attribute values. Such mappings contain the names of the HTML attributes as keys, and the corresponding values represent the attributes' values. diff --git a/doc/filters/html_attr_type.rst b/doc/filters/html_attr_type.rst index 7de4c6587..dd64fd397 100644 --- a/doc/filters/html_attr_type.rst +++ b/doc/filters/html_attr_type.rst @@ -3,10 +3,6 @@ .. _html_attr_type: -.. versionadded:: 3.24 - - The ``html_attr_type`` filter was added in Twig 3.24. - The ``html_attr_type`` filter converts arrays into specialized attribute value objects that implement custom rendering logic. It is designed for use with the :ref:`html_attr` function for attributes where diff --git a/doc/functions/html_attr.rst b/doc/functions/html_attr.rst index 1b3b8d37a..941580ff0 100644 --- a/doc/functions/html_attr.rst +++ b/doc/functions/html_attr.rst @@ -3,10 +3,6 @@ .. _html_attr: -.. versionadded:: 3.24 - - The ``html_attr`` function was added in Twig 3.24. - The ``html_attr`` function renders HTML attributes from one or more mappings, taking care of proper escaping. The mappings contain the names of HTML attributes as keys, and the corresponding values represent the attributes'