I'm trying to use the Markdown Editor to embed some JavaScript code into my site via Umbraco, but I'm having trouble whenever CDATA is used in the code.
I've used @Html.Raw to render the code properly (which for the most part works correctly), but whenever CDATA is used, all of the code following the closing angle bracket is cut off. What's weird is that there are other angle brackets in the code that doesn't produce the same problem so I'm at a loss!
Embedding JavaScript using the Markdown editor
Hi all,
I'm trying to use the Markdown Editor to embed some JavaScript code into my site via Umbraco, but I'm having trouble whenever CDATA is used in the code.
I've used @Html.Raw to render the code properly (which for the most part works correctly), but whenever CDATA is used, all of the code following the closing angle bracket is cut off. What's weird is that there are other angle brackets in the code that doesn't produce the same problem so I'm at a loss!
Does anyone know of a solution to this problem?
Kind regards,
is working on a reply...