Skip to content

Extensible HyperText Markup Language

Taiizor edited this page Mar 1, 2023 · 2 revisions

XhtmlExtension Class

The XhtmlExtension class is a static class that provides extension methods for minifying and beautifying XHTML code.

Namespace

The XhtmlExtension class is defined in the Skylark.Standard.Extension.Xhtml namespace.

Methods

ToMinify Method

The ToMinify method is a static method that accepts an XHTML string as input and returns a minified version of the input string.

Method Signature

public static string ToMinify(string Xhtml = MXXM.Xhtml)

Parameters

  • Xhtml: The input XHTML string. Default value is MXXM.Xhtml.

Returns

The minified version of the input string.

Exceptions

  • E: If an error occurs while minifying the input string.

ToMinifyAsync Method

The ToMinifyAsync method is a static method that accepts an XHTML string as input and returns a task that represents the asynchronous operation of minifying the input string.

Method Signature

public static Task<string> ToMinifyAsync(string Xhtml = MXXM.Xhtml)

Parameters

  • Xhtml: The input XHTML string. Default value is MXXM.Xhtml.

Returns

A task that represents the asynchronous operation of minifying the input string.

Exceptions

  • E: If an error occurs while minifying the input string.

ToBeauty Method

The ToBeauty method is a static method that accepts an XHTML string as input and returns a beautified version of the input string.

Method Signature

public static string ToBeauty(string Xhtml = MXXM.Xhtml)

Parameters

  • Xhtml: The input XHTML string. Default value is MXXM.Xhtml.

Returns

The beautified version of the input string.

Exceptions

  • E: If an error occurs while beautifying the input string.

ToBeautyAsync Method

The ToBeautyAsync method is a static method that accepts an XHTML string as input and returns a task that represents the asynchronous operation of beautifying the input string.

Method Signature

public static Task<string> ToBeautyAsync(string Xhtml = MXXM.Xhtml)

Parameters

  • Xhtml: The input XHTML string. Default value is MXXM.Xhtml.
Clone this wiki locally