You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered: