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)]
public string Append(string value, string append)
{
    if (string.IsNullOrEmpty(value))
    {
        return append;
    }

    if (string.IsNullOrEmpty(append))
    {
        return value;
    }

    return value + append;
}

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