public class

JavaScriptHelper

extends Object
java.lang.Object
   ↳ com.microstrategy.web.app.utils.JavaScriptHelper

Class Overview

This class has some of the most commonly needed JavaScript utilities. All of the methods on this class are public static so that no instance is required.

Summary

Public Constructors
JavaScriptHelper()
Public Methods
static String encodeJSCode(String jsCode)
Delimits the Single Quote(') with a back slash single quote(\') for JavaScript It accepts the string to be encoded and returns the encoded string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JavaScriptHelper ()

Public Methods

public static String encodeJSCode (String jsCode)

Delimits the Single Quote(') with a back slash single quote(\') for JavaScript It accepts the string to be encoded and returns the encoded string.

Parameters
jsCode String value to be encoded
Returns
  • the encoded string