This bug us also a feature. Perhaps we should have three options.
1. No tags allowed.
2. Tags allowed with filtering.
3. All tags allowed.
Of course, as you mention above, at the moment "disable HTML" is actually "Allow All HTML".
This bug us also a feature. Perhaps we should have three options.
1. No tags allowed.
2. Tags allowed with filtering.
3. All tags allowed.
Of course, as you mention above, at the moment "disable HTML" is actually "Allow All HTML".
Comments
Comment #1
ax commented[adding original bug report that somehow got discarded]
if "Enable HTML tags" is "Disabled" (so you think there is no HTML allowed in user-contributed content at all), no filtering is done. the relevant code snip:
i think it should be
and i would suggest to rename either "Enable HTML tags" to "Filter HTML" or, better, the variable "filter_html" to "enable_html_tags". cause thats what i guess caused that problem ("Enable HTML tags" is the opposite of "filter_html").
another thing: if html is disabled, there shouldnt be "Allowed HTML tags:" below submit forms (as it is currently), but something like "HTML not allowed". Guess a new wrapper function ("form_hint"? what would be an appropriate name?) would help. This function should check "filter_html" and "allowed_html" and output the appropriate. Besides,
it should give a hint (with examples) to properly quote entities etc. if html is enabled (not doing so is reason of many complaints).
Comment #2
ax commentedfixed in both cvs and 4.1 (by renaming "Enable HTML tags" to "Filter HTML tags").