Improve user facing content cleaned message
Description
Attachments
Activity

Andrea Schmidt May 16, 2019 at 8:01 PM
Verified on https://qa19-mysql.nightly.sakaiproject.org, build: ee2b3cd7

Andrea Schmidt April 9, 2019 at 6:59 PMEdited
Verified on https://trunk-mysql.nightly.sakaiproject.org, build: c7dd6f93
Added <alert> tags

Matthew Jones February 14, 2019 at 7:34 PM
Does anyone think the terms "HTML" "tags" and "attributes" may be confusing to some users as well? I feel like there's two primary cases where users would get this message.
Someone copy and pasted content from some place else (Word, another website, a vendor) and have no idea of what the actual HTML was
Someone with some technical knowledge actually edited the HTML directly adding a script or some other tag.
I think depending on what was removed it may actually affect actual content. I guess that's why your suggestion says "should not affect"
These are the typical warnings that it would display if it had the full mode on. (Found this on the web). Antisamy is mostly about filtering markup while attempting to retain content.
Wilma Hodges February 5, 2019 at 4:46 PM
Sure, I can see that. I'm not particularly attached to the term "unsupported". I was struggling to find a shorter way of saying "tags or attributes that are not permitted" and "non-permitted HTML has been removed" sounded funny. Maybe the longer but less loaded "Your HTML contains tags or attributes that are not permitted" is better after all. My main concern was addressing Sam's observation that "Its removal" and "actual content" are both a bit vague. If we aren't too worried about brevity, maybe the following would work?
Your HTML contains formatting tags or attributes that are not permitted and have been removed. This change should not affect content.

Brian J. February 5, 2019 at 10:40 AMEdited
I'm not sure about the word "unsupported". I feel as though it gives the impression that Sakai is at fault, or can't handle certain otherwise valid content, rather than being explicit about saying there was content that was not permitted; but that's just my personal opinion. I'll run the suggestions by some other folks and see what their opinions are as well. Thanks!
The current wording of the message shown to users when offending content has been stripped by AntiSamy could be slightly confusing to users:
The linked PR proposes updating this text to the following, to reassure users that their valuable content should remain in tact: