Whitelist all the code inside of a div tag?

That could be dangerous. What exactly are you trying to achieve?