Open kamenac opened 10 years ago
CultureInfo culture = new CultureInfo("tr-TR"); Thread.CurrentThread.CurrentCulture = culture; string script = "<script type=\"text/javascript\">alert(\"abc\");</script>"; CQ dom = script; Debug.Assert(dom.Render() == script);
dom.Render() returns <script type="text/javascript">alert("abc");</script> which causes browsers to fail at rendering the resulting page.
<script type="text/javascript">alert("abc");</script>
dom.Render() returns
<script type="text/javascript">alert("abc");</script>
which causes browsers to fail at rendering the resulting page.