mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Injected <script /> Tag Contains Illegal XHTML+XML Characters #91

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set the application content type to "application/xhtml+xml"
2. Load a page with MvcMiniProfiler.MiniProfiler.RenderIncludes()
3. On a modern browser, the XHTML parsing will fail

What is the expected output? What do you see instead?
Expecting to see the page load and parse. Instead the parsing fails due to 
illegal characters (& being one of them) in the injected <script /> tag

What version of the product are you using? On what operating system?
Version 1.7.0.0 on Windows 7 with Chrome 14

Please provide any additional information below.
There may be additional illegal characters besides the one mentioned above and 
this can be easily fixed by wrapping the inside of the <script /> tag with a 
<![CDATA[ ... ]> section.

Original issue reported on code.google.com by dj_ky...@hotmail.com on 17 Aug 2011 at 7:51

GoogleCodeExporter commented 8 years ago
fixed in latest, you can now do: 

@MiniProfiler.RenderIncludes(xhtml: true)

Original comment by sam.saff...@gmail.com on 26 Aug 2011 at 2:32