} //end if currentMediaList != null
// get the comments for the article
- mergeData.put("comments", currentContent.getComments());
+ // and html-ize them
+ SimpleList commentList = currentContent.getComments();
+ try{
+ if(commentList.isEmpty()==false){
+ while(commentList.hasNext()){
+ SimpleHash comment = (SimpleHash)commentList.next();
+ SimpleScalar commentText = (SimpleScalar)comment.get("description");
+ comment.put("description",new SimpleScalar(StringUtil.createHTML(commentText.getAsString(),imageRoot,mailLinkName,extLinkName,intLinkName)));
+ }
+ }
+ } catch(Exception e){}
+ mergeData.put("comments", commentList);
// get the topics of this article
mergeData.put("topics",HTMLTemplateProcessor.makeSimpleList(DatabaseContentToTopics.getInstance().getTopics(currentContent)));
}
}
+