Sanitize SQL Query String

code Cyber ops military_tech TACTICAL-4
info
You are not signed in.

You can read the task, take hints and check your answer — but nothing is saved. No XP, no skill points, and this task will not be marked complete.

assignment Your task

Write a SQL or PHP/Python sanitizer function `sanitize_input(val)` that strips single quotes and quotes to prevent SQLi.

What this proves: Identify and mitigate SQL Injection security vulnerabilities.

Prerequisites: sql_basics_and_web_sec
terminal Code / Terminal Workspace