Function sequant::eval::schedule::escape_for_html_script¶
Defined in File schedule_document.cpp
Function Documentation¶
-
std::string sequant::eval::schedule::escape_for_html_script(std::string_view json)¶
jsonwith 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 asjson.