Updated PR - CDATA for scripts and styles in XHTML documents #906

This is reference on #906 with a clean fix of the problem without any additional changes.