mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-12-22 09:29:44 +00:00
Open HTTPS links in the online help in new window
This commit is contained in:
parent
85b1fb08eb
commit
eafc116529
@ -191,7 +191,11 @@ final class HTMLWriter {
|
|||||||
if (text == null) {
|
if (text == null) {
|
||||||
throw new IllegalArgumentException("Parameter 'text' must not be null.");
|
throw new IllegalArgumentException("Parameter 'text' must not be null.");
|
||||||
}
|
}
|
||||||
return "<a href=\"" + href + "\" >" + text + "</a>";
|
String target ="";
|
||||||
|
if (href.toLowerCase().startsWith("https://")) {
|
||||||
|
target=" target=\"_blank\"";
|
||||||
|
}
|
||||||
|
return "<a href=\"" + href + "\" "+target+">" + text + "</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getString(List<String> list) {
|
public static String getString(List<String> list) {
|
||||||
|
Loading…
Reference in New Issue
Block a user