mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 04:02:36 +01:00
Add XML documentation to HTML tag constants
Enhanced HtmlUtil.cs with XML comments detailing the purpose of each HTML tag constant. This improves code readability and helps developers understand the specific usage of these constants. Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
This commit is contained in:
parent
80d20fbb77
commit
f3139dba3d
@ -14,10 +14,29 @@ namespace Nikse.SubtitleEdit.Core.Common
|
||||
/// </summary>
|
||||
public static class HtmlUtil
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the HTML tag used for italic text formatting.
|
||||
/// </summary>
|
||||
public static string TagItalic => "i";
|
||||
|
||||
/// <summary>
|
||||
/// Represents the HTML tag used for bold text formatting.
|
||||
/// </summary>
|
||||
public static string TagBold => "b";
|
||||
|
||||
/// <summary>
|
||||
/// Represents the HTML tag used for underlined text formatting.
|
||||
/// </summary>
|
||||
public static string TagUnderline => "u";
|
||||
|
||||
/// <summary>
|
||||
/// Represents the HTML tag used for specifying font attributes.
|
||||
/// </summary>
|
||||
public static string TagFont => "font";
|
||||
|
||||
/// <summary>
|
||||
/// Represents the HTML tag used for the Cyrillic character 'і'.
|
||||
/// </summary>
|
||||
public static string TagCyrillicI => "\u0456"; // Cyrillic Small Letter Byelorussian-Ukrainian i (http://graphemica.com/%D1%96)
|
||||
|
||||
private static readonly Regex TagOpenRegex = new Regex(@"<\s*(?:/\s*)?(\w+)[^>]*>", RegexOptions.Compiled);
|
||||
|
Loading…
Reference in New Issue
Block a user