If setValue is called with a string containing double quotes (for example, "Foo Bar" Ltd.) an exception is thrown in the browser console and the value is not set in the input box.
Doing string replacement with escaped double quotes solves the issue and is displayed correctly.
private String escapeQuotes(String value) {
return value.replace("\"", "\\\"");
}
If setValue is called with a string containing double quotes (for example,
"Foo Bar" Ltd.) an exception is thrown in the browser console and the value is not set in the input box.Doing string replacement with escaped double quotes solves the issue and is displayed correctly.