Side note: This
is potentially a very bad idea for any user-entered content. It’s not just that it’s a security hole large enough to drive an aircraft carrier through, but even a simple mistake in terms of something like mis-matched html tags can render that page display non-functional.