My main problem is when someone copy paste text from web like whole cell from google sheet this string submit to mysql database <style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><span style="font-size: 10pt; font-family: Arial;" data-sheets-value="{
upon reloading this code alter my HTML table structure on page
I try to create a Check Constraint to allow only Numbers, alphabets, spaces and hyphens in that column all others special character (~!@#$%^&*()+{[}]:;'"\|?><) need to be ignored or removed on row update
I tried below code but unable to stop HTML code from entering the database
ALTER TABLE Table_Name
ADD CONSTRAINT ck_No_Special_Characters
CHECK (Column_Name NOT LIKE '%[^A-Z0-9]%')
If do not have control over the form input box how can I resolve this problem in MySQL?