Skip to main content

body_text

Function body_text 

Source
fn body_text(body: &str, capabilities: &[String]) -> String
Expand description

A body as the notification server reads it. Most read markup there (“body-markup”: <b>, <a href>, <img src>), and bodies carry a mail’s or a site’s words: there, &, < and > are written as entities, so that the words show as they came and nothing in them is a link or a picture to fetch. A server that reads no markup shows the text as it is. The summary is plain text for every server (the specification), and goes as it is.