Class ScriptSanitizer

java.lang.Object
com.illumon.util.text.ScriptSanitizer

public class ScriptSanitizer
extends Object
  • Constructor Details

  • Method Details

    • sanitizeScriptCode

      public static String sanitizeScriptCode​(String commandToSanitize)
      Replaces unwanted characters like smart quotes with the standard equivalent. Used so that copy and paste operations from tools like Outlook or Slack don't result in unusable scripts.
      Parameters:
      commandToSanitize - the command to sanitize
      Returns:
      the command with unwanted characters replaced with allowable characters