private static String unescapeColors ( String txt , boolean restore ) { if ( txt == null ) return null ; String prefix = restore ? "#" : "%" ; return ESCAPED_PATTERN . matcher ( txt ) . replaceAll ( prefix + "$1" ) ; }
Un - escape escaped tags so that they look as the users intended .