mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Fix multiple mistakes and warnings
This commit is contained in:
@@ -14,20 +14,20 @@ namespace MediaBrowser.Common.Extensions
|
||||
/// Strips the HTML.
|
||||
/// </summary>
|
||||
/// <param name="htmlString">The HTML string.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
/// <returns><see cref="string" />.</returns>
|
||||
public static string StripHtml(this string htmlString)
|
||||
{
|
||||
// http://stackoverflow.com/questions/1349023/how-can-i-strip-html-from-text-in-net
|
||||
const string pattern = @"<(.|\n)*?>";
|
||||
const string Pattern = @"<(.|\n)*?>";
|
||||
|
||||
return Regex.Replace(htmlString, pattern, string.Empty).Trim();
|
||||
return Regex.Replace(htmlString, Pattern, string.Empty).Trim();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the M d5.
|
||||
/// Gets the Md5.
|
||||
/// </summary>
|
||||
/// <param name="str">The STR.</param>
|
||||
/// <returns>Guid.</returns>
|
||||
/// <param name="str">The string.</param>
|
||||
/// <returns><see cref="Guid" />.</returns>
|
||||
public static Guid GetMD5(this string str)
|
||||
{
|
||||
using (var provider = MD5.Create())
|
||||
|
||||
Reference in New Issue
Block a user