Pchp.Library.Streams.TextWriteFilter.Filter C# (CSharp) Method

Filter() public method

Processes the input (either of type string or byte[]) data and returns the filtered data in one of the formats above or null.
public Filter ( Context ctx, TextElement input, bool closing ) : TextElement
ctx Pchp.Core.Context
input TextElement
closing bool
return TextElement
        public TextElement Filter(Context ctx, TextElement input, bool closing)
        {
            return new TextElement(input.AsText(ctx.StringEncoding).Replace("\n", "\r\n"));
        }