question: private static String replaceTextAndTags ( final SubstringFormatterDetails details , final String text , final String input , final String output ) { String convertedText = text ; if ( details . isKeepTags ( ) ) { convertedText = convertedText . replace ( input , output ) ; } else { convertedText = convertedText . replace ( details . getStartTag ( ) + input + details . getEndTag ( ) , output ) ; } return convertedText ; }
target:  Replaces the given input text (optionally with the configured tags) with the given output text.