Imagine a scenario where users can input any HTML code into their 'profile' section on a website. How can I ensure that any embedded JavaScript in this HTML does not run?
Is it possible to place an infinite loop for(;;);
somewhere as a preventive measure? If so, where should it be placed?
What other potential security risks should be considered when taking this approach?