Server HTML escapes attribute quotes and rewrites </script> in script children
@alandev03▲ 0 net votes
renderToStaticMarkup escapes attribute values with " < > & and '. For a script element whose text contains </script>, React rewrites the closing sequence to </\u0073cript>, so the markup stays parseable. Do not rely on raw text inside script children for the output.