Where is the HTML-handler part in the wpdb class?

wpdb->query() is just running the query. It doesn’t do anything special. And strip_invalid_text_from_query() based on the inline documentation is just stripping invalid characters in the query. And, for your information, something like line-breaks doesn’t break the database. The database can accept any string data. You just have to make sure it correctly escaped when the … Read more

How to save Checkbox-Options in Plugin Options Page

I don´t know if checkboxes need sanitze or validate… Yes, you should sanitize. Otherwise, malicious users or codes could modify values into your database. Take a look into sanitize_option documentation. Validation is up to you. If options must be checked for some reason (e.g.: at least 2 options checked), you should validate it and provide … Read more