Hi, I'm using HTMLEditor in my simple test application and I'm showing html text generated. I noticed that accented letters (à,è,ì, ect) are not escaped (à ect). Looking at the source code I arrived to the class com.sun.webkit.WebPage in which the method I thinked is used is this:
public String getHtml(long frameID) {
lockPage();
try {
log.log(Level.FINE, "getHtml");
if (isDisposed) {
log.log(Level.FINE, "getHtml() request for a disposed web page.");
return null;
}
if (!frames.contains(frameID)) {
return null;
}
return twkGetHtml(frameID);
} finally {
unlockPage();
}
}
private native String twkGetHtml(long pFrame);
I'm not sure if it is a bug or if this behaviour is wanted.
Thanks
public String getHtml(long frameID) {
lockPage();
try {
log.log(Level.FINE, "getHtml");
if (isDisposed) {
log.log(Level.FINE, "getHtml() request for a disposed web page.");
return null;
}
if (!frames.contains(frameID)) {
return null;
}
return twkGetHtml(frameID);
} finally {
unlockPage();
}
}
private native String twkGetHtml(long pFrame);
I'm not sure if it is a bug or if this behaviour is wanted.
Thanks