Function sequant::eval::schedule::escape_for_html_script

Function Documentation

std::string sequant::eval::schedule::escape_for_html_script(std::string_view json)

json with every ‘<’ and every U+2028/U+2029 line terminator replaced by its \uXXXX escape, so that the text can be inlined into an HTML <script> element: a “</script>” inside a JSON string would otherwise end the element. Denotes the same JSON value as json.