public HtmlDecoder(TextWriter writer, ITagHelperProvider tagHelperProvider) { _writer = writer; _tagHelperProvider = tagHelperProvider; _tagDecoders = new Stack <ITagDecoder>(); _tagHelpers = new Stack <ITagHelper>(); _tagHelperDictionary = new Dictionary <ITagDecoder, ITagHelper>(); _chars = new StringBuilder(); _handler = AppendNonTag; }
public HtmlDecoder(TextWriter writer, ITagHelperProvider tagHelperProvider) { _writer = writer; _tagHelperProvider = tagHelperProvider; _tagDecoders = new Stack<ITagDecoder>(); _tagHelpers = new Stack<ITagHelper>(); _tagHelperDictionary = new Dictionary<ITagDecoder, ITagHelper>(); _chars = new StringBuilder(); _handler = AppendNonTag; }
public HtmlProcessor(TextWriter writer, ITagHelperProvider tagHelperProvider) { _decoder = writer.Encoding.GetDecoder(); _writer = writer; _htmlDecoder = new HtmlDecoder(writer, tagHelperProvider); }
public TagHelperWriter(TextWriter output, ITagHelperProvider tagHelperProvider) : base(output.FormatProvider) { _output = output; _processor = new HtmlProcessor(output, tagHelperProvider); }