Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.YetaWFComponentBase.JE Method

Encodes the provided text suitable for use as a JavaScript string.

Class: YetaWF.Core.Components.YetaWFComponentBase
Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Syntax

public static string JE( string? text );
public static string JE( bool val );

Parameters

text

The string to encode.

val

The value to encode.

Return Value

Returns encoded JavaScript string. The string to encode should not use surrounding quotes. These must be added after encoding.

See Also YetaWF.Core.Components.YetaWFComponentBase ClassYetaWF.Core Overview