Last active
November 7, 2021 14:17
-
-
Save ajsb85/277a451b0c7511f3b9194a94e8a70768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:html/parser.dart' show parse; | |
import 'package:html/dom.dart'; | |
main() { | |
var document = parse( | |
'<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Titulo</title> | |
<style>${css}</style> | |
<script>${js}</script> | |
</head> | |
<body> | |
${html} | |
</body> | |
</html>'); | |
print(document.outerHtml); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment