Skip to main content

HtmlUtils

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public static class HtmlUtils

Properties

TableClass

View Source
Declaration
public static string TableClass { get; set; }

Methods

HtmlEncode(String)

View Source
Declaration
public static string HtmlEncode(this string s)
Returns

System.String

Parameters
TypeName
System.Strings

AsString(Object)

View Source
Declaration
public static string AsString(this object str)
Returns

System.String

Parameters
TypeName
System.Objectstr

GetScalarHtml(Object)

View Source
Declaration
public static string GetScalarHtml(object target)
Returns

System.String

Parameters
TypeName
System.Objecttarget

HtmlDump(Object)

View Source
Declaration
public static string HtmlDump(object target)
Returns

System.String

Parameters
TypeName
System.Objecttarget

HtmlDump(Object, HtmlDumpOptions)

View Source
Declaration
public static string HtmlDump(object target, HtmlDumpOptions options)
Returns

System.String

Parameters
TypeName
System.Objecttarget
ServiceStack.Blazor.HtmlDumpOptionsoptions

HtmlList(IEnumerable)

View Source
Declaration
public static string HtmlList(IEnumerable items)
Returns

System.String

Parameters
TypeName
System.Collections.IEnumerableitems

HtmlList(IEnumerable, HtmlDumpOptions)

View Source
Declaration
public static string HtmlList(IEnumerable items, HtmlDumpOptions options)
Returns

System.String

Parameters
TypeName
System.Collections.IEnumerableitems
ServiceStack.Blazor.HtmlDumpOptionsoptions

SanitizeAttributes(Nullable<IReadOnlyDictionary<String, Object>>)

View Source
Declaration
public static IReadOnlyDictionary<string, object>? SanitizeAttributes(this IReadOnlyDictionary<string, object>? attrs)
Returns

System.Nullable<IReadOnlyDictionary<System.String,System.Object>>

Parameters
TypeName
System.Nullable<IReadOnlyDictionary<System.String,System.Object>>attrs