escape_attr

Function escape_attr 

Source
pub fn escape_attr(s: &str) -> String
Expand description

Escape a string for an attribute value the shell writes rather than a view.

The runtime builds the surrounding document with format! and puts two values from outside the program into it — the actor’s name and its claims — and those are the identity provider’s strings, not the program’s. Exported so that they go through the same escaping the view’s own attributes do rather than a second one written beside it.