Skip to content

@serenity-is/corelib / htmlEncode

Function: htmlEncode()

htmlEncode(s): string

Html encodes a string (encodes single and double quotes, & (ampersand), > and < characters)

Parameters

s

any

String (or number etc.) to be HTML encoded

Returns

string

Defined in

src/base/html.ts:19