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