com.evanmclean.evlib.escape
Class EscJavascript

java.lang.Object
  extended by com.evanmclean.evlib.escape.EscJavascript

public final class EscJavascript
extends Object

Makes a string safe to use as a string literal inside a piece of Javascript code (does not add enclosing double quotes).

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Method Summary
 String text(Object obj)
           Makes a string safe to use as a string literal inside a piece of Javascript code (does not add enclosing double quotes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

text

public String text(Object obj)

Makes a string safe to use as a string literal inside a piece of Javascript code (does not add enclosing double quotes).

Parameters:
obj -
Returns:
The substituted string, or null if obj was null.