back-cleaner 0.0.2

Last updated:

0 purchases

back-cleaner 0.0.2 Image
back-cleaner 0.0.2 Images
Add to Cart

Description:

backcleaner 0.0.2

back-cleaner
Server-side Python tool for escaping script tags and converting characters into HTML entity equivalents (no regex).
def escape_script_tags(input_str)
This function escapes script tags with backslashes.
Sample
from back_cleaner.cleaner import escape_script_tags
source = "<script>Hey, how are you doing?</script>"
result = escape_script_tags(source)
print(result)
def replace_with_ents(input_str)
This function converts the following characters into the HTML entity equivalents.

Ampersand (&)
Less than (<)
Greater than (>)
Double quote (")
Single quote (')

Sample
from back_cleaner.cleaner import replace_with_ents
source = "<script>Hey, how are you doing?</script>"
result = replace_with_ents(source)
print(result)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.