Cannot have ']]>' inside an XML CDATA block.


If you edit Umbraco content and insert JavaScript code, you will end up with the following error: Cannot have ‘]]>’ inside an XML CDATA block.

An easy way to get around this is to add the JavaScript to a Razor scripting file, create a macro that uses the scripting file, and add the macro to the content via the content editor.

As a developer working with Umbraco, if you have a requirement that states your customers need the ability to add their own forms, tweet feeds, facebook like book, etc. via the content editor, make them available to editors via macros. This is by far the safest way for editors to add complex features to editable areas.

Advertisements