View Source
Class TemplateUtilities
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[Obsolete("This class is obsolete, all methods have been moved to other classes: HtmlLocalLinkParser, HtmlUrlParser and HtmlImageSourceParser")]
public static class TemplateUtilities
Methods
View Source
CleanForXss(String, Char[])
Declaration
[Obsolete("Use StringExtensions.CleanForXss instead")]
public static string CleanForXss(string text, params char[] ignoreFromClean)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Char[] |
ignoreFromClean |
|
Returns
Type |
Description |
System.String |
|
View Source
ParseInternalLinks(String, UrlProvider)
Declaration
[Obsolete("Inject and use an instance of HtmlLocalLinkParser instead")]
public static string ParseInternalLinks(string text, UrlProvider urlProvider)
Parameters
Type |
Name |
Description |
System.String |
text |
|
UrlProvider |
urlProvider |
|
Returns
Type |
Description |
System.String |
|
View Source
ResolveMediaFromTextString(String)
Declaration
[Obsolete("Use HtmlImageSourceParser.EnsureImageSources instead")]
public static string ResolveMediaFromTextString(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.String |
|
View Source
ResolveUrlsFromTextString(String)
Declaration
[Obsolete("Inject and use an instance of HtmlUrlParser")]
public static string ResolveUrlsFromTextString(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.String |
|