Html 2 PBsource
Posted: Mon Mar 25, 2024 4:48 pm
About code editor...
It would be interesting to be able to...
It would be interesting to be able to...
- Paste html code
- Be able to convert it to a text string with this format and indentation:
Code: Select all
Html$ = ~"<button id=\"displayInfo\">Display Info</button>\n"+
~"<script>\n"+
~" const displayInfoElement=document.getElementById(\"displayInfo\");\n"+
~" document.addEventListener(\"DOMContentLoaded\", () => {\n"+
~" displayInfoElement.addEventListener(\"click\", () => {\n"+
~" window.displayInfo(1000, 2000).then(result => {\n"+
~" });\n"+
~" });\n"+
~" });\n"+
~"</script>";