namespace Nop.Services.Html; /// /// Represents a HTML formatter /// public partial interface IHtmlFormatter { /// /// Formats the text /// /// Text /// A value indicating whether to strip tags /// A value indicating whether HTML is allowed /// A value indicating whether HTML is allowed /// A value indicating whether BBCode is allowed /// A value indicating whether to resolve links /// A value indicating whether to add "noFollow" tag /// Formatted text string FormatText(string text, bool stripTags, bool convertPlainTextToHtml, bool allowHtml, bool allowBbCode, bool resolveLinks, bool addNoFollowTag); /// /// Strips tags /// /// Text /// Formatted text string StripTags(string text); /// /// replace anchor text (remove a tag from the following URL Name and output only the string "Name") /// /// Text /// Text string ReplaceAnchorTags(string text); /// /// Converts plain text to HTML /// /// Text /// Formatted text string ConvertPlainTextToHtml(string text); /// /// Converts HTML to plain text /// /// Text /// A value indicating whether to decode text /// A value indicating whether to replace anchor text (remove a tag from the following URL Name and output only the string "Name") /// Formatted text string ConvertHtmlToPlainText(string text, bool decode = false, bool replaceAnchorTags = false); }