Skip to main content

escape_script_data

Function escape_script_data 

Source
pub fn escape_script_data(json: &str) -> String
Expand description

Escape already serialized JSON for an HTML script raw-text body. HTML entity escaping is wrong here: script text does not decode "/<.