예제 #1
0
        public async Task EncodeUrl()
        {
            var input = new StringValue("*****@*****.**");

            var arguments = new FilterArguments();
            var context   = new TemplateContext();

            var result = await MiscFilters.UrlEncode(input, arguments, context);

            Assert.Equal("john%40liquid.com", result.ToStringValue());
        }