Fossil Forum

skateboard 1 week, 5 days ago

Post: Help text for safe-html is confusing

The HTML help for safe-html is confusing because it shows a hyphen character - before each of the options b, f, t, w. It looks something like this:

If this setting exists and is a string, then letters in that string can enable unsafe HTML in various contexts:

- b
Unsafe HTML allowed in embedded documentation
- f
Unsafe HTML allowed in forum posts
- t
Unsafe HTML allowed in tickets
- w
Unsafe HTML allowed on wiki pages

I wasn't sure whether the - needed to be part of the settings string. (Particularly as a string like -t might semantically suggest "turn off safe-html for tickets".) I had to check the source code to be sure that only the four letters matter, and hyphens (if any) are ignored.

I propose that the hyphens be removed from the documentation of safe-html, and that formatting like that of autosync or verify-comments be used instead.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button