Encodes text so that it is safe to use in HTML.

Syntax

ISHtmlUtilities.HtmlEncode(text, [makeConsecutiveSpacesNonBreaking], [encodeLineBreaks])

Parameters

NameTypeOptionalByRefDescription
text String The text to encode.
makeConsecutiveSpacesNonBreaking Boolean Optional Indicates whether to make all consecutive spaces into non-breaking spaces. If omitted, a value of False is assumed.
encodeLineBreaks Boolean Optional Indicates whether to convert line breaks into <br/> tags. If omitted, a value of False is assumed.

Return Value

String

A String value.

Member of:
ISHtmlUtilities
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0