// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using System.Text.Encodings.Web;
namespace Microsoft.AspNet.Html
{
///
/// HTML content which can be written to a TextWriter.
///
public interface IHtmlContent
{
///
/// Writes the content by encoding it with the specified
/// to the specified .
///
/// The to which the content is written.
/// The which encodes the content to be written.
void WriteTo(TextWriter writer, HtmlEncoder encoder);
}
}