Metadata-Version: 2.1
Name: safescript
Version: 1.0.2
Summary: A Python module for enhancing web application security
Home-page: https://github.com/ishanoshada/safescript
Author: Ishan Oshada
Author-email: ic31908@gmail.com
License: UNKNOWN
Description: # SafeScript v1.0.2
        
        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.
        
        ## Features
        
        - **sanitize_html**: Sanitize HTML content to prevent XSS attacks.
        - **escape_html**: Escape special characters in HTML content.
        - **sanitize_sql**: Sanitize SQL input to prevent SQL Injection attacks.
        - **prevent_xss_and_sqli**: Prevent both XSS and SQL Injection attacks.
        
        ## Installation
        
        You can install SafeScript using pip:
        
        ```bash
        pip install safescript
        ```
        
        ## Usage
        
        ```python
        from safescript import SafeScript
        
        # Example Usage
        input_data = "<script>alert('XSS Attack')</script>"
        output = SafeScript.prevent_xss_and_sqli(input_data)
        print(output)
        ```
        
        ## Functions
        
        - **sanitize_html(input_html)**
           - Sanitize HTML content to prevent XSS attacks.
        
        - **escape_html(input_html)**
           - Escape special characters in HTML content.
        
        - **sanitize_sql(input_sql)**
           - Sanitize SQL input to prevent SQL Injection attacks.
        
        - **prevent_xss_and_sqli(input_data)**
           - Prevent both XSS and SQL Injection attacks.
        
        ## Version History
        
        - v1.0.2 (Current Version)
            - [List of changes in v1.0.2]
        
        - v1.0.1
           - Initial release with basic security functions.
        
        
         
        ## Contributors
        
        - [Ishan Oshada](https://github.com/ishanoshada)
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
