String currentValue = RenderUtils.currentValue(input);
if (currentValue != null) {
if (ComponentUtils.getDataAttribute(input, "html-editor") != null
&& "auto".equals(input.getSanitize())) {
final Sanitizer sanitizer = TobagoConfig.getInstance(facesContext).getSanitizer();
currentValue = sanitizer.sanitize(currentValue);
}
// this is because browsers eat the first CR+LF of <textarea>
if (currentValue.startsWith("\r\n")) {
currentValue = "\r\n" + currentValue;
} else if (currentValue.startsWith("\n")) {