Skip to content

Filter 'strip' works on {block} but not on {capture} #215

@MartinStepar

Description

@MartinStepar

Version: 2.6.1

Where's the issue?

Some filters have strict type hint to "string", eg. strip. When applied to {block}, it's OK, but on {capture} is captured content wrapped into Latte\Runtime\Html, then given to filter - and TypeError is here.

Try this...

{capture $test|strip} Test {/capture}

...instead of TypeError should filter works the same way as in {block}

{block test|strip} Test {/block}

TypeError

nette-latte-filter-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions