Skip to content

Allow to chain escapers #521

@ihommani

Description

@ihommani

Hi,

I am using handlebar 4.0.5.

I wanted to know if the handlebars.java roadmap contains a feature allowing to chain escapers.
Currently when I create a Template with escaper there is no possibility to specify several escapers.
If I want to mix several escape policy I have to implement my own über escaper.

If I create a template as follow:

new Handlebars() .with(MyPersonalEscapeStrategy) .with(EscapingStrategy.CSV) .registerHelper("join", JoinHelper()) .compileInline("...");

MyPersonalEscapeStrategy will not be taken into account. Only the last specified escaper will be applied.

So like we have the possibility to chain Formater, It would be nice to add the possibility to chain escaper.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions