Function crowbook_text_processing::escape::escape_nb_spaces [] [src]

pub fn escape_nb_spaces<'a, S: Into<Cow<'a, str>>>(input: S) -> Cow<'a, str>

Escape non breaking spaces for HTML, so there is no problem for displaying them if the font or browser doesn't know what to do with them (particularly the narrow non breaking space which isn't very well supported).