Skip to main content

A small package to convert html file to entities

Project description

html-entities

a python lib to encode a whole html src code into entities

about

have you ever wondered how to convert a whole html script to entities and yeah still everything works so fine? yes, this small module will help you to achieve your needs.

before using the script. please consider reading rules section to provide successful convertion from ASCII to entities.

requirements

  • python 3.x
  • bs4 (Beautiful Soup 4)

usage

from htmltools.entities import Encrypter,EncryptionHardOne
html = "some html here"
encryptContentOnly = Enctypter(html)
html = encryptContentOnly.encodingLetter()
encryptWholeScript = EncryptionHardOne(html)
html = encryptWholeScript.encodingLetterX()

rules

before encoding the whole letter, please follow the next rules i setted myself:

  • remove any unnecessary #, it breaks the encryption, for example: href="#".
  • consider removing <style> Content </style> and add it after encryption to make the encryption works.
  • always use base64 or email-embedded images instead of urls.
  • if an image doesnt work when embedded to base64, please remove it from source code then add it later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htmltools-hcn1z1-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

htmltools_hcn1z1-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file htmltools-hcn1z1-0.0.2.tar.gz.

File metadata

  • Download URL: htmltools-hcn1z1-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.10

File hashes

Hashes for htmltools-hcn1z1-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f70c2b344d1d31430d017aa9424b4526941b19bf41c5415686e0f14a1f615e20
MD5 63e5bd8104878e9c60385ca4bf4db400
BLAKE2b-256 213576b7546fcb50359640e6a79caeda35b6a357eec2529e5142018f9a94b411

See more details on using hashes here.

File details

Details for the file htmltools_hcn1z1-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for htmltools_hcn1z1-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b22526318df3e5c999be223ed412543eb709b120f4849208863810a6570d4c1
MD5 92a195f444d9a6ed03085a9ff7a231db
BLAKE2b-256 1bfd70960e79ef74815bba9a7c53317ebde0f9677f804b1a67bb90eace6e8048

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page