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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 135b65a323fc1a2ad849aa35846bff1ea20ae8e334b4a3acfbbd8c9591776e42 |
|
MD5 | 6a59ff95f1f34b54dff57f85d085a138 |
|
BLAKE2b-256 | 4f4da3e3bab3fbf92f79d4f72249ab1c5f22d624299e199aa12b62449b965634 |