Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java =================================================================== diff -u -rca9bfb3f1b523e53197504a9e9d741185d27220c -r58c329ba6a678db2ff9c89dc782765f1aeea0d1e --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java (.../VoteUtils.java) (revision ca9bfb3f1b523e53197504a9e9d741185d27220c) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java (.../VoteUtils.java) (revision 58c329ba6a678db2ff9c89dc782765f1aeea0d1e) @@ -259,7 +259,17 @@ logger.debug("trimmed noHtmlNoNewLineStr: " + noHtmlNoNewLineStr.trim()); if (noHtmlNoNewLineStr.trim().length()==0) { - logger.debug("nomination text is just composed of html markup, returning html formatted text"); + logger.debug("nomination text is just composed of html markup, try getting just a src entry for a picture otherwise give up."); + htmlText = htmlText.toLowerCase(); + int index = htmlText.indexOf("src"); + if ( index > -1 ) { + index = htmlText.indexOf("\"",index); + if ( index > -1 && index < htmlText.length()) { + int indexStop = htmlText.indexOf("\"", index+1); + if ( indexStop > -1) + return htmlText.substring(index+1, indexStop-1); + } + } if (htmlText.length() > 50) return htmlText.substring(0,51); else