@Test public void extractCitation() { String refs = "&nbsp;&nbsp;Waruhiu C, Ommeh S, Obanda V, Agwanda B, Gakuya F, Ge XY, Yang XL, Wu LJ, Zohaib A, Hu B, Shi ZL, Molecular detection of viruses in Kenyan bats and discovery of novel astroviruses, caliciviruses and rotaviruses. <a href='http: String citationClean = DatasetImporterForDBatVir.scrubReferenceCitation(refs); assertThat(citationClean, Is.is("Waruhiu C, Ommeh S, Obanda V, Agwanda B, Gakuya F, Ge XY, Yang XL, Wu LJ, Zohaib A, Hu B, Shi ZL, Molecular detection of viruses in Kenyan bats and discovery of novel astroviruses, caliciviruses and rotaviruses. Virol Sin 2017, 32(2):101-114.")); }
public static String scrubReferenceCitation(String refs) { String citation = Jsoup.clean(refs, new Whitelist()); return StringUtils.replace(citation, "&nbsp;", ""); }
DatasetImporterForDBatVir extends DatasetImporterWithListener { public static String scrubReferenceCitation(String refs) { String citation = Jsoup.clean(refs, new Whitelist()); return StringUtils.replace(citation, "&nbsp;", ""); } }
DatasetImporterForDBatVir extends DatasetImporterWithListener { public static String scrubReferenceCitation(String refs) { String citation = Jsoup.clean(refs, new Whitelist()); return StringUtils.replace(citation, "&nbsp;", ""); } DatasetImporterForDBatVir(ParserFactory parserFactory, NodeFactory nodeFactory); }
DatasetImporterForDBatVir extends DatasetImporterWithListener { public static String scrubReferenceCitation(String refs) { String citation = Jsoup.clean(refs, new Whitelist()); return StringUtils.replace(citation, "&nbsp;", ""); } DatasetImporterForDBatVir(ParserFactory parserFactory, NodeFactory nodeFactory); static String scrubReferenceCitation(String refs); @Override void importStudy(); int getTotalCount(); static void parseInteractions(InputStream pageStream, InteractionListener interactionListener); static ObjectMapper getLenientObjectMapper(); }
DatasetImporterForDBatVir extends DatasetImporterWithListener { public static String scrubReferenceCitation(String refs) { String citation = Jsoup.clean(refs, new Whitelist()); return StringUtils.replace(citation, "&nbsp;", ""); } DatasetImporterForDBatVir(ParserFactory parserFactory, NodeFactory nodeFactory); static String scrubReferenceCitation(String refs); @Override void importStudy(); int getTotalCount(); static void parseInteractions(InputStream pageStream, InteractionListener interactionListener); static ObjectMapper getLenientObjectMapper();  }