Skip to main content

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.

  1. Ampersand (&)
  2. Less than (<)
  3. Greater than (>)
  4. Double quote (")
  5. 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)

Metadata

Release files for back-cleaner 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for back-cleaner 0.0.2
File Size Uploaded Provenance Actions
back_cleaner-0.0.2.tar.gz 2.9 kB Without provenance Details for back_cleaner-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for back-cleaner 0.0.2
File Interpreter ABI Platform Actions
back_cleaner-0.0.2-py3-none-any.whl Python 3 none any Details for back_cleaner-0.0.2-py3-none-any.whl

Total release size: 6.6 kB

Release files / back_cleaner-0.0.2.tar.gz

Download URL back_cleaner-0.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5fcbeb2f506b0918deeda5981d52e99f1270172e57713fd88a6ec0c4655a3a51
BLAKE2b-256 checksum
How to use checksums
1193a0894045d9fb9b96c48b7965e1d7be7df71c1eb6be9914e2dadfe3d1d92b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9

Release files / back_cleaner-0.0.2-py3-none-any.whl

Download URL back_cleaner-0.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f21bd3042588bfb15e5e0712b2bc3204e5340e5a4700b99d9c203038ef46699
BLAKE2b-256 checksum
How to use checksums
ecb210e82fda3313376800b808e74adbe828a920c333ec3721e9c02e95bf9dac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9

Security for back-cleaner 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page