Skip to content

filters applied in wrong order #388

Description

@fkv1

According to the documentation:

To apply more than one filter, separate them by a comma:
${" some value " | h,trim}
The HTML escaping function is applied first, the “trim” function second.

But when I do:

<%
  def keep_spaces(p_s):
    return p_s.replace(' ','&nbsp;')
%>
${x |h, keep_spaces}

it transforms " ABC" into

&amp;nbsp;&amp;nbsp;ABC

instead of just

&nbsp;&nbsp;ABC

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions