General developer forum

Adding content of editor into database

 
Picture of Mark Johnson
Re: Adding content of editor into database
Core developersParticularly helpful MoodlersPlugin developers

Unless the users of the form you're creating are 100% trusted, you'll probably want to sanitise the text before outputting it, by running it through format_text() or format_string() to mitigate cross-site scripting or otherwise problematic markup.

 
Average of ratings: -