/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
- * Copyright (C) 2015 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
public ParseHtmlBodyAndLinks(String description, boolean removeHTML,
String newline)
{
- StringBuilder sb = new StringBuilder(description.length());
if (description == null || description.length() == 0)
{
htmlContent = false;
return;
}
+ StringBuilder sb = new StringBuilder(description.length());
if (description.toUpperCase().indexOf("<HTML>") == -1)
{
htmlContent = false;
{
// instead of parsing the html into plaintext
// clean the description ready for embedding in html
- sb = new StringBuilder(LEFT_ANGLE_BRACKET_PATTERN
- .matcher(description).replaceAll("<"));
+ sb = new StringBuilder(LEFT_ANGLE_BRACKET_PATTERN.matcher(description)
+ .replaceAll("<"));
}
content = translateEntities(sb.toString());
}