• Hello,

    I am using the Rebble Agenda app and I noticed some weird artefacts (see attachment, event name redacted for privacy).

    After further investigation, I saw that the artefacts actually come from the android.calendar.json file provided from Gadgetbridge.

    Here is an example of an event with such artefacts:

    {t:"calendar",id:85,type:0,timestamp:1711371600,durationInSeconds:3600,title:"redacted",description:"-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-\nParticiper via Google\xA0Meet\xA0: https://meet.google.com/redacted\nOu composez le\xA0: (FR) redacted Cod...",location:"",calName:"redacted",color:-6299161,allDay:false}
    

    It looks like events that come from Google Workspace with a Google Meet invitation include some weird -::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::- separators that completely mess up the UI.

    Another event is difficult to read because it has HTML tags in it:

    description:"<html-blob><u></u><u></u><u></u><p><b>redacted &nbsp;</b>redacted</p><p><b><br></b></p><p><u><b>redacted&...
    

    Would it be possible to "sanitize" this data coming from Gadgetbridge, maybe using a regex to remove HTML tags and separators?

    It would subsequently fix all the apps that require the JSON file.

    Thanks


    1 Attachment

    • IMG_20240321_233524~2.jpg
About

Avatar for Pologram @Pologram started