HTML utils
Removing Comments from files
Comments are not being removed when:
- there is a
"or a'in the same line. - there is a
[finalComment]in the Comment. All other Comments are removed.
Usage
file_model.removeComments(<SinglelineComments>,<MultilineCommentStart>,<MultilineCommentEnd>)
jsFile.removeComments("//", "/*", "*/")
Uglify
Uglify removes all the \n
Usage
file_model.uglify()
Change images to base64
Replaces the source in <img>-Tags with the Base64 String of the image.
Accepted image types are:
- bmp
- gif
- jpeg
- png
- svg
Usage
file_model.imagesToBase64()
Release files for html-utils-becothal 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| html_utils_becothal-1.3.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| html_utils_becothal-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / html_utils_becothal-1.3.tar.gz
| Download URL | html_utils_becothal-1.3.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fe34d5e17ead218d55bf6c543d757856b692bfc63f45445e2e251e27148c9ec
|
|
BLAKE2b-256 checksum How to use checksums |
cc4cbb94b4d967e1e753c9ff98fda32144b522a7cf2f3232383a0852e16f4a04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
|
Release files / html_utils_becothal-1.3-py3-none-any.whl
| Download URL | html_utils_becothal-1.3-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7c0d056cfd2ed36f66a2ac049184046793dda1b2bfce7a0a3354144a9bf4459
|
|
BLAKE2b-256 checksum How to use checksums |
590e5fd2911f0f5a03bda3680268feddf898cbb23e74f193478fdf20ba48cdf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
|