Skip to content

Instantly share code, notes, and snippets.

@ajsb85
Last active November 7, 2021 14:17
Show Gist options
  • Save ajsb85/277a451b0c7511f3b9194a94e8a70768 to your computer and use it in GitHub Desktop.
Save ajsb85/277a451b0c7511f3b9194a94e8a70768 to your computer and use it in GitHub Desktop.
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