Skip to content

SafeString ? #660

Description

@StefH

Is this new?

Because when I use the new 2.4.0 for this unit test:

{{[String.Append] \"foo\" ([String.Append] \"a\"\"b\")}}

When parsing the arguments, I get a SafeString with value ab, however the SafeString is internal, so I cannot process it.

My Append method is like:

[HandlebarsWriter(WriterType.String)]publicstringAppend(stringvalue,stringappend){if(string.IsNullOrEmpty(value)){returnappend;}if(string.IsNullOrEmpty(append)){returnvalue;}returnvalue+append;}

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions