C# Class WebMarkupMin.Core.Parsers.HtmlAttribute

HTML attribute
Show file Open project: Taritsyn/WebMarkupMin Class Usage Examples

Public Methods

Method Description
HtmlAttribute ( string name, string nameInLowercase, string value, HtmlAttributeType type ) : System.IO

Constructs instance of HTML attribute

HtmlAttribute ( string name, string nameInLowercase, string value, HtmlAttributeType type, SourceCodeNodeCoordinates nameCoordinates, SourceCodeNodeCoordinates valueCoordinates ) : System.IO

Constructs instance of HTML attribute

HtmlAttributeDecode ( string value ) : string

Converts a string that has been HTML-encoded into a decoded string

HtmlAttributeEncode ( string value, HtmlAttributeQuotesType attributeQuotesType = HtmlAttributeQuotesType.Double ) : string

Converts a string to an HTML-encoded string

Private Methods

Method Description
ContainsHtmlAttributeEncodingChars ( string value, char quoteCharValue ) : bool

Method Details

HtmlAttribute() public method

Constructs instance of HTML attribute
public HtmlAttribute ( string name, string nameInLowercase, string value, HtmlAttributeType type ) : System.IO
name string Name
nameInLowercase string Name in lowercase
value string Value
type HtmlAttributeType Type
return System.IO

HtmlAttribute() public method

Constructs instance of HTML attribute
public HtmlAttribute ( string name, string nameInLowercase, string value, HtmlAttributeType type, SourceCodeNodeCoordinates nameCoordinates, SourceCodeNodeCoordinates valueCoordinates ) : System.IO
name string Name
nameInLowercase string Name in lowercase
value string Value
type HtmlAttributeType Type
nameCoordinates WebMarkupMin.Core.Utilities.SourceCodeNodeCoordinates Coordinates of name
valueCoordinates WebMarkupMin.Core.Utilities.SourceCodeNodeCoordinates Coordinates of value
return System.IO

HtmlAttributeDecode() public static method

Converts a string that has been HTML-encoded into a decoded string
public static HtmlAttributeDecode ( string value ) : string
value string The string to decode
return string

HtmlAttributeEncode() public static method

Converts a string to an HTML-encoded string
public static HtmlAttributeEncode ( string value, HtmlAttributeQuotesType attributeQuotesType = HtmlAttributeQuotesType.Double ) : string
value string The string to encode
attributeQuotesType HtmlAttributeQuotesType HTML attribute quotes type
return string