if (renderHtml && text != null && !MediaTypeEnum.HTML.equals(tableModel.getMedia())) {
text = StringUtil.stripAllHtmlTag(text);
}
// handle links
DataListAction action = column.getAction();
if (text != null && action != null && action.getHref() != null && action.getHref().trim().length() > 0 && MediaTypeEnum.HTML.equals(tableModel.getMedia())) {
String href = action.getHref();
String target = action.getTarget();
String hrefParam = (action.getHrefParam() != null && action.getHrefParam().trim().length() > 0) ? action.getHrefParam() : "";
String hrefColumn = (action.getHrefColumn() != null && action.getHrefColumn().trim().length() > 0) ? action.getHrefColumn() : "";
String confirm = action.getConfirmation();
String link = generateLink(href, target, hrefParam, hrefColumn, text.toString(), confirm);
text = link;
}
return text;