code: public static String escapeColors (String txt)
      {
          if (txt == null) return null;
          return COLOR_PATTERN.matcher(txt).replaceAll("#''$1");
      }
docs: Escape any special tags so that they won't be interpreted by the label.