SafeScript
1.0.0
SafeScript is a Python module designed to enhance the security of web applications by providing various functions to prevent common security vulnerabilities such as XSS and SQL Injection attacks.
You can install SafeScript using pip:
pip install safescriptfrom safescript import SafeScript
# Example Usage
input_data = "<script>alert('XSS Attack')</script>"
output = SafeScript.prevent_xss_and_sqli(input_data)
print(output)sanitize_html(input_html)
escape_html(input_html)
sanitize_sql(input_sql)
prevent_xss_and_sqli(input_data)
v1.0.2 (Current Version)
v1.0.1
Repository Views