19 package org.turro.contacts.comment;
21 import org.turro.string.Strings;
22 import org.turro.contacts.Comment;
23 import org.turro.html.HTMLEntities;
31 private final String lang, langLabel;
33 private boolean newComment;
37 this.langLabel = langLabel;
38 this.comment = comment;
59 return comment.
getComment().length() <= lang.length() + 4;
63 return comment.
getComment().substring(lang.length() + 3);
70 private void initComment() {
71 newComment = Strings.isBlank(comment.
getId());
static String plainWhenPossible(String html)