A tool to inline CSS files into HTML.
Project description
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()
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
Built Distribution
Close
Hashes for html_utils_becothal-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb9809b42858fa8aae035c6a4e2307d1b29d583d2cfb03770be818cce137473 |
|
MD5 | 890478a0f1a10994f18511d560c9bd75 |
|
BLAKE2b-256 | 7cabfd13ef91ec3289334e61014300bf6d158cbb78c949d7c0589a27205925bd |