예제 #1
0
        public ActionResult Index([FromForm] string html)
        {
            BlockConverter bc = new BlockConverter(new BlockConverterSettings
            {
                Logger = _logger,
                JsonSerializerSettings = new JsonSerializerSettings
                {
                    Formatting = Formatting.Indented
                }
            });

            return(new ContentResult
            {
                ContentType = "text/html",
                StatusCode = (int)HttpStatusCode.OK,
                Content = $"<pre>{bc.SerializeHtml(html)}</pre>"
            });
        }