Html2Js
Convert Html to equivalente javascript ( document.createElement , document.createTextNode , document.setAttribute , document.appendChild )
Usage :
Example
from Html2js import html2js
html = """<div style="margin-top:-20px; letter-spacing:3px;font-size:45px" class="sfbg">ISSAM</div>"""
print(html2js(html,root = "document.body"))
var itm_139927509068160 = document.createElement("div");
itm_139927509068160.setAttribute("style","margin-top:-20px; letter-spacing:3px;font-size:45px");
itm_139927509068160.classList.add("sfbg");
var itm_139927509052800 = document.createTextNode("ISSAM");
itm_139927509068160.appendChild(itm_139927509052800);
document.body.appendChild(itm_139927509068160);
Metadata
Release files for Html2js 1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Html2js-1.4.tar.gz | 2.4 kB | Without provenance | Details for Html2js-1.4.tar.gz |
Release files / Html2js-1.4.tar.gz
| Download URL | Html2js-1.4.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e100dd8c8153a3fd8bbb5ede757de1094fdb99fe8e869d1614b2a5cf20a1023f
|
|
BLAKE2b-256 checksum How to use checksums |
cb0abe0289f607cb7bc3bc403f509d26ed788349d5ff808172cfde58a1243b96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Security for Html2js 1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.