synology_apm_repo.sdk.units.content.saas_teams_html_sanitizer module

Content Layer — the allowlist sanitizer behind Teams/Chat’s HTML export: an “html” contentType message body is re-emitted with only the tags below and no source attributes but an http(s) link’s href, so backup content can’t inject script or style into the exported page. Pure str -> str.

synology_apm_repo.sdk.units.content.saas_teams_html_sanitizer.render_message_body_html(raw_content, stickers)

One message’s raw body as safe HTML: text with no tags is escaped; anything else goes through _MessageBodyRenderer’s allowlist, every tag it opens closed by the end of the body.