From 3131d979e97090085af417fa148642ef68b84429 Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 16 Apr 2025 04:07:21 +0200 Subject: [PATCH 1/2] Docs for escape cleanup. --- en/appendices/6-0-migration-guide.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/en/appendices/6-0-migration-guide.rst b/en/appendices/6-0-migration-guide.rst index 1c3c7c89c3..5a9d6f5b45 100644 --- a/en/appendices/6-0-migration-guide.rst +++ b/en/appendices/6-0-migration-guide.rst @@ -44,3 +44,13 @@ Utility - The default placeholder format for ``Text::insert()`` has been changed. They now use ``{foo}`` instead of ``:foo``. You can get the old behavior by using the ``before`` and ``after`` keys of ``$options``. + +View +---- + +- ``'escape'``/``'escapeTitle'`` keys have now been separated cleanly into ``escape`` for escaping content/labels, and + ``'escapeAttributes'`` for HTML attributes respectively. They also don't overlap anymore, so if you need to prevent escaping + on content and attributes, make sure to set them both to false. +- ``title`` has been renamed to ``content`` in scopes where this is not an attribute, but content or label element, specifically: + ``'item'``/``itemWithoutLink`` breadcrumb templates. +- ``multicheckboxTitle`` template of FormHelper is now ``multicheckboxLabel``. From c48169e5a82ff37714af4d1b249a9967d61ce865 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Thu, 8 May 2025 23:01:36 -0400 Subject: [PATCH 2/2] Remove 5.x migration guide --- en/appendices/5-3-migration-guide.rst | 30 --------------------------- 1 file changed, 30 deletions(-) delete mode 100644 en/appendices/5-3-migration-guide.rst diff --git a/en/appendices/5-3-migration-guide.rst b/en/appendices/5-3-migration-guide.rst deleted file mode 100644 index 2889b90f55..0000000000 --- a/en/appendices/5-3-migration-guide.rst +++ /dev/null @@ -1,30 +0,0 @@ -5.3 Migration Guide -################### - -The 5.3.0 release is a backwards compatible with 5.0. It adds new functionality -and introduces new deprecations. Any functionality deprecated in 5.x will be -removed in 6.0.0. - -Behavior Changes -================ - -View ----- - -- The ``format()`` and ``currency()`` methods of ``NumberHelper`` now accept also null as input and can return any default string here. - This allows for easier templates, in particular baked ones. Make sure to adjust any extending helper (plugin or app level) by adding that type. - -Deprecations -============ - -ORM ---- - -- Calling behavior methods on table instances is now deprecated. To call - a method of an attached behavior you need to use - ``$table->getBehavior('Sluggable')->slugify()`` instead of ``$table->slugify()``. - -New Features -============ - -TODO