Skip to content

Commit eefbda9

Browse files
committed
Use HTML to bring emphasis to security warning.
1 parent 3655920 commit eefbda9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Plugin,
66
PluginSettingTab,
77
requestUrl,
8+
sanitizeHTMLToDom,
89
Setting,
910
} from "obsidian";
1011
import MediumGateway from "src/medium-gateway";
@@ -82,10 +83,10 @@ class DevPublishSettingTab extends PluginSettingTab {
8283

8384
containerEl.empty();
8485

86+
8587
new Setting(containerEl)
8688
.setName("API key")
87-
.setDesc(
88-
"SECURITY WARNING! This will be stored unencrypted in your obsidian plugin folder. Do not use this plugin if you do not fully understand the security implications of this.",
89+
.setDesc(sanitizeHTMLToDom("<b>Security warning!</b><br />This will be stored unencrypted in your obsidian plugin folder. Do not use this plugin if you do not fully understand the security implications of this.")
8990
)
9091
.addText((text) =>
9192
text

0 commit comments

Comments
 (0)