As far as I understand, double quotes (") should be escaped with " in the generated HTML.
<, > and & are correctly escaped.
import 'package:highlight/highlight.dart' show highlight;
main() {
var source = '''main() {
print("Hello <> World!");
}
''';
var result = highlight.parse(source, language: 'dart');
var html = result.toHtml();
print(html); // HTML string
}
As far as I understand, double quotes (
"
) should be escaped with"
in the generated HTML.<
,>
and&
are correctly escaped.Actual output is:
Expected output is: