protected String formatTranslationString(POBuildData buildData, final String translationString) {
        try {
            final Document doc = TopicUtilities.convertXMLStringToDocument("<temp>" + translationString + "</temp>",
                    buildData.getDocBookVersion().getId());

            return XMLUtilities.convertNodeToString(doc.getDocumentElement(), false);
        } catch (Exception e) {
            return translationString;
        }
    }
protected String formatTranslationString ( POBuildData buildData , final String translationString ) { try { final Document doc = TopicUtilities . convertXMLStringToDocument ( "<temp>" + translationString + "</temp>" , buildData . getDocBookVersion ( ) . getId ( ) ) ; return XMLUtilities . convertNodeToString ( doc . getDocumentElement ( ) , false ) ; } catch ( Exception e ) { return translationString ; } }
Formats a string so that it will be compatible with publicans expectations.


@param buildData         Information and data structures for the build.
@param translationString The string to be formatted.
@return The formatted string.