Bug #13045
Entity decode of strings are different between if-conditions and output of variable
Status: | New | Start date: | 2011-02-15 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
Has patch: | Affected Flow version: | FLOW3 1.0.0 |
Description
If I assign the following to a variable:
<ul class="csc-menu csc-menu-3"><li class="csc-section">
And want to work with this string in an own viewhelper, I have to html_entity_decode it. If I not do this, the submitted string depends where I call the viewhelper.
Fluid-Template Example 1:
Cool String: {own:viewhelper subject='{variables}'}
My viewhelper gets the subject:
<ul class=" ..."as expected.
Fluid-Template Example 2:
<f:if condition="{own:viewhelper subject='{variables}'}"> <f:then> ...Note: My viewhelper counts some html tags in the string and returns an integer.
The given subject is now:
<ul class=" ...
This is generally no big problem, but it is a little bit inconsistent and not documented.
Kind Regards
History
#1 Updated by Karsten Dambekalns almost 4 years ago
- Affected Flow version set to FLOW3 1.0.0