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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c0d056cfd2ed36f66a2ac049184046793dda1b2bfce7a0a3354144a9bf4459 |
|
MD5 | 1b17d0540e777c1c8b57fdd3fb0c0886 |
|
BLAKE2b-256 | 590e5fd2911f0f5a03bda3680268feddf898cbb23e74f193478fdf20ba48cdf1 |