Safe.js - Example Page

This page demonstrates the usage of Safe.js library for validation and security tasks.

Examples

Example 1: Validating an Email

Enter an email address and click the button to validate:

Example 2: Validating a Password

Enter a password and click the button to validate:

Example 3: Validating a URL

Enter a URL and click the button to validate:

Example 4: Validating a Phone Number

Enter a phone number and click the button to validate:

Example 5: Sanitizing HTML Input

Enter HTML code and click the button to sanitize:

Example 6: Escaping HTML

Enter a string with HTML tags and click the button to escape:

Example 7: Encrypting Text

Enter a plaintext and encryption key, then click the button to encrypt:

Example 8: Decrypting Text

Enter an encrypted text and encryption key, then click the button to decrypt:

Example 9: Generating Random String

Enter the length of the random string and click the button to generate:

Example 10: Capitalizing a String

Enter a string and click the button to capitalize it:

Example 11: Reversing a String

Enter a string and click the button to reverse it: