* string. See #8004.
*
* @return cleaned html string
*/
public String getSanitizedValue() {
BrowserInfo browser = BrowserInfo.get();
String result = getValue();
if (browser.isFirefox()) {
if ("<br>".equals(result)) {
result = "";
}
} else if (browser.isWebkit()) {
if ("<br>".equals(result) || "<div><br></div>".equals(result)) {
result = "";
}
} else if (browser.isIE()) {
if ("<P> </P>".equals(result)) {
result = "";
}
} else if (browser.isOpera()) {
if ("<br>".equals(result) || "<p><br></p>".equals(result)) {
result = "";
}
}
return result;