private String replaceTags(String orig, String relPath) {
        String result = orig.replaceAll("(?m)^\\s*\\*", ""); // todo precompile regex

        // {@link processing hack}
        result = replaceAllTags(result, "", "", LINK_REGEX, relPath);

        // {@code processing hack}
        result = replaceAllTags(result, "<TT>", "</TT>", CODE_REGEX, relPath);

        // hack to reformat other groovydoc block tags (@see, @return, @param, @throws, @author, @since) into html
        result = replaceAllTags(result + "@endMarker", "<DL><DT><B>$1:</B></DT><DD>", "</DD></DL>", TAG_REGEX, relPath);
        // remove @endMarker
        result = result.substring(0, result.length() - 10);

        return SimpleGroovyClassDoc.decodeSpecialSymbols(result);
    }
private String replaceTags ( String orig , String relPath ) { String result = orig . replaceAll ( "(?m)^\\s*\\*" , "" ) ; result = replaceAllTags ( result , "" , "" , LINK_REGEX , relPath ) ; result = replaceAllTags ( result , "<TT>" , "</TT>" , CODE_REGEX , relPath ) ; result = replaceAllTags ( result + "@endMarker" , "<DL><DT><B>$1:</B></DT><DD>" , "</DD></DL>" , TAG_REGEX , relPath ) ; result = result . substring ( 0 , result . length ( ) - 10 ) ; return SimpleGroovyClassDoc . decodeSpecialSymbols ( result ) ; }
TODO remove dup with SimpleGroovyClassDoc