-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
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
}
Actual output is:
<span class="hljs-built_in">print</span>(<span class="hljs-string">"Hello <> World!"</span>);
Expected output is:
<span class="hljs-built_in">print</span>(<span class="hljs-string">"Hello <> World!"</span>);
Metadata
Metadata
Assignees
Labels
No labels