mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-26 18:30:52 +01:00
fix
This commit is contained in:
parent
87ef847796
commit
c26a9149f5
@ -187,11 +187,11 @@ public class GExtensionStoreController implements Initializable {
|
||||
|
||||
webView.getEngine().executeScript(String.format("setHeading(\"%s\", \"%s\", \"%s\")",
|
||||
WebUtils.escapeHtmlNoBackslash(overview.header().iconUrl()),
|
||||
WebUtils.escapeMessage(overview.header().title()),
|
||||
WebUtils.escapeMessage(overview.header().description())
|
||||
WebUtils.escapeMessageAndQuotes(overview.header().title()),
|
||||
WebUtils.escapeMessageAndQuotes(overview.header().description())
|
||||
));
|
||||
webView.getEngine().executeScript(String.format("setContentTitle(\"%s\")",
|
||||
WebUtils.escapeMessage(overview.header().contentTitle())
|
||||
WebUtils.escapeMessageAndQuotes(overview.header().contentTitle())
|
||||
));
|
||||
});
|
||||
}
|
||||
|
@ -66,6 +66,11 @@ public class WebUtils {
|
||||
.replace("\r", "<br>");
|
||||
}
|
||||
|
||||
public static String escapeMessageAndQuotes(String text) {
|
||||
text = escapeMessage(text);
|
||||
return text.replace("\"", """);
|
||||
}
|
||||
|
||||
public static void clearElement(Element node) {
|
||||
while (node.hasChildNodes())
|
||||
node.removeChild(node.getFirstChild());
|
||||
|
Loading…
Reference in New Issue
Block a user