Is possible to create helper class to simplify tag RichText
es..
public class RichTextHelper {
public static String image(String fileName) {
return "<img src='" + fileName + "'/>";
}
public static String image(String fileName, int width, int height) {
return "<img src='" + "" + fileName + "' width='" + width + "' height='" + height + "'/>";
}
public static String bold(String text) {
return "<b>" + text + "</b>";
}
public static String italic(String text) {
return "<i>" + text + "</i>";
}
public static String strikethrough(String text) {
return "<s>" + text + "</s>";
}
public static String underline(String text) {
return "<u>" + text + "</u>";
}