-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Unify the HTML encoding handling with other ROS apps #13819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify the HTML encoding handling with other ROS apps #13819
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
As mentioned on IRC, this is working on Android.
|
|
Which is expected as per the bold warning in the PR description |
|
Hm. I assumed that if I enable all three PRs, that then everything would work… |
|
Sure, no problem ! |
|
@nickvergessen so since we only have notifications on the client. We'd need to validate that we escape the html right? |
|
@rullzer yeah basically make sure all HTML is shown as plain text |
|
I'll try to verify this evening then |

While looking into nextcloud/android#3487 I noticed, that the apps which use the most famous RichObjectStrings (Activity and Notifications) have an inconsistent handling in terms of HTML encoding. Or to phrase it better, neither cared and it worked for most, because the providing app happened to escape the HTML (sometimes).
So now we simply define, that ROS should not be HTML escaped, similar to their plain-text variants. Instead the viewing part is responsible to escape the HTML properly, which was provided before the ROS rendering happens.
I checked all apps, and I only could find HTML handling in comments (for activities only, notifications are fine) and announcementcenter (both fixed for upcoming)
Client devs please confirm that this works as intended on your side then:
You can test this, by mentioning your user
@test1in a comment: