In my web application, I have a textarea where users can input any text that is saved as a string in the database. The issue arises when users enter Javascript code into the textarea, as it will execute when viewed on the saved data page. Is there a universal method to prevent this security vulnerability?