HTML
JS
Related Tools
HTML to JS converter online, providing the function of HTML source code to JS variable. It can be converted based on template string or ordinary string concatenating.
- Mode : Select whether to convert HTML to JS template string or convert HTML to JS normal string, which uses + concatenating.
- Quote : When the mode is set to normal string, select whether the generated string uses ' single quote or " double quote.
- Open : Open the local HTML file, and the supported file encoding is UTF-8.
- Convert : Convert the input HTML source code into JS (JavaScript) variables using the selected parameters.
- Download : Download the output JS(JavaScript) locally. The file name is html_to_js.js. The file encoding is UTF-8.