Show / Hide Table of Contents

Class HtmlNormalizer

Inheritance
System.Object
HtmlNormalizer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Volo.Docs.HtmlConverting
Assembly: Volo.Docs.Web.dll
Syntax
public static class HtmlNormalizer

Methods

ReplaceCodeBlocksLanguage(String, String, String)

Declaration
public static string ReplaceCodeBlocksLanguage(string content, string currentLanguage, string newLanguage)
Parameters
Type Name Description
System.String content
System.String currentLanguage
System.String newLanguage
Returns
Type Description
System.String

ReplaceImageSources(String, String, String)

Declaration
public static string ReplaceImageSources(string content, string documentRawRootUrl, string localDirectory)
Parameters
Type Name Description
System.String content
System.String documentRawRootUrl
System.String localDirectory
Returns
Type Description
System.String

WrapImagesWithinAnchors(String)

Wraps an image with a tag that's clickable to open the image in a new browser tab.

Declaration
public static string WrapImagesWithinAnchors(string html)
Parameters
Type Name Description
System.String html
Returns
Type Description
System.String
Back to top Powered by Volosoft