We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b744025 commit 380ca5aCopy full SHA for 380ca5a
lib/html_parser.dart
@@ -742,7 +742,7 @@ class HtmlParser extends StatelessWidget {
742
tree.children.forEach((child) {
743
if (child is EmptyContentElement || child is EmptyLayoutElement) {
744
toRemove.add(child);
745
- } else if (child is TextContentElement && (child.text!.isEmpty)) {
+ } else if (child is TextContentElement && (child.text!.trim().isEmpty)) {
746
747
} else if (child is TextContentElement &&
748
child.style.whiteSpace != WhiteSpace.PRE &&
lib/src/html_elements.dart
@@ -77,7 +77,6 @@ const INTERACTABLE_ELEMENTS = [
77
const REPLACED_ELEMENTS = [
78
"audio",
79
"br",
80
- "head",
81
"iframe",
82
"img",
83
"svg",
0 commit comments