Ensures HTML entities are recognized in script blocks in a context where CDATA is allowed even with nested script blocks.