// 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.Globalization; using Microsoft.Extensions.Localization; namespace Microsoft.AspNet.Mvc.Localization { /// /// This service does not HTML encode the resource string. It HTML encodes all arguments that are formatted in /// the resource string. /// public interface IHtmlLocalizer : IStringLocalizer { /// /// Creates a new for a specific . /// /// The to use. /// A culture-specific . new IHtmlLocalizer WithCulture(CultureInfo culture); /// /// Gets the resource for a specific key. /// /// The key to use. /// The resource. LocalizedHtmlString Html(string key); /// /// Gets the resource for a specific key. /// /// The key to use. /// The values to format the string with. /// The resource. LocalizedHtmlString Html(string key, params object[] arguments); } }