Article Details
Id:19059
Product:finPOWER Connect
Type:NEW
Version:3.04.04
Opened:08/03/2022
Closed:08/03/2022
Released:09/06/2022
Job: J028419

HTML Encode "encodeLineBreaks" parameter now encodes single LineFeed characters

The HtmlEncode function in Runtime.HtmlUtilities now encodes single Carriage Returns and Line Feeds as line breaks.

The HtmlEncode function includes an "encodeLineBreaks" parameter, default is False. When True it was encoding vbCrLf (equivalent to vbNewLine) to line breaks, i.e. <br/>. This now encodes vbCr and vbLf characters to line breaks as well.

This is important as files may now only include vbLf characters rather than vbCrLf - depending on their source.

This function is shown below with the encodeLineBreaks parameter set to True.

finBL.Runtime.HtmlUtilities.HtmlEncode(Text,, True)