Table of Contents

THtmlEntities.EncodeAsHtml Method

Overloads

THtmlEntities.EncodeAsHtml(String, THtmlVersion, Encoding)

Converts a normal string into a string that can be used inside an HTML file. This includes converting characters to entities, replacing carriage returns by <br> tags, replacing multiple spaces by nbsp and more. EnterStyle is TEnterStyle.Br if omitted.

Syntax

Namespace: FlexCel.Core

public static String EncodeAsHtml(String originalString, THtmlVersion htmlVersion, Encoding encoding)

Parameters

<-> Parameter Type Description
originalString String String we want to convert.
htmlVersion THtmlVersion Version of html we are targeting. In Html 4 <br> is valid and <br/> is not. In XHtml the inverse is true.
encoding Encoding Code page used to encode the string. Normally this is UTF-8

See also

THtmlEntities.EncodeAsHtml(String, THtmlVersion, Encoding, TEnterStyle)

Converts a normal string into a string that can be used inside an HTML file. This includes converting characters to entities, replacing carriage returns by <br> tags, replacing multiple spaces by nbsp and more. EnterStyle is TEnterStyle.Br if omitted.

Syntax

Namespace: FlexCel.Core

public static String EncodeAsHtml(String originalString, THtmlVersion htmlVersion, Encoding encoding, TEnterStyle EnterStyle)

Parameters

<-> Parameter Type Description
originalString String String we want to convert.
htmlVersion THtmlVersion Version of html we are targeting. In Html 4 <br> is valid and <br/> is not. In XHtml the inverse is true.
encoding Encoding Code page used to encode the string. Normally this is UTF-8
EnterStyle TEnterStyle How to convert enters and multiple spaces in the text.

See also