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 .