Feature #6389

Option/Possibility to Disable Object Escaping

Added by Marc Neuhaus almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Core
Target version:
Start date:
2010-02-07
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

Currently the ObjectAccessor will always be escaped.
In my Opinion there should be a way to Disable this behavior for certain Objects/Properties


Related issues

Related to TYPO3.Fluid - Feature #6844: Remove "shut-up" operator @ResolvedSebastian Kurfuerst2010-03-15

Actions
#1

Updated by Robert Lemke almost 12 years ago

  • Category set to Core
  • Status changed from New to Accepted
  • Assignee changed from Sebastian Kurfuerst to Robert Lemke
  • Target version set to 1.0.0 alpha 8

Because I needed this feature myself, I tried out different ways of making this possible. In my opinion the most convenient and still clean way is to introduce a special character in the object accessor path syntax which allows for disabling the configured interceptors.

A blog post for example contains HTML in its "content" property which should be output directly without any further escaping. Currently the post content is rendered like this:

    <p class="content"><f:format.nl2br>{post.content}</f:format.nl2br></p>

I suggest that we allow the "@" sign for disabling the interceptors:

    <p class="content"><f:format.nl2br>{@post.content}</f:format.nl2br></p>

Now Fluid would render the content HTML as is.

#2

Updated by Robert Lemke almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3883.

Also available in: Atom PDF