Function codeviz_js::quote_string [] [src]

pub fn quote_string<E>(out: &mut E, input: &str) -> Result<()> where
    E: ElementFormat

Quote a string to make it suitable as a literal JavaScript string.