code: private static String escapeString(String value) {
  
          Map<String, String> substitutions = new HashMap<String, String>();
          substitutions.put("\n", "\\n");
          substitutions.put("\t", "\\t");
          substitutions.put("\r", "\\r");
  
          return CmsStringUtil.substitute(value, substitutions);
      }
docs: Escapes the value of a property in OpenCms to be displayed
  correctly in a property file.<p>
  
  Mainly handles all escaping sequences that start with a backslash.<p>
  
  @see #unescapeString(String)
  
  @param value the value with the string to be escaped
  
  @return the escaped string