isInline function
Checks if the given tag
corresponds to an inline HTML element.
Inline elements include: 'i', 'em', 'u', 'ins', 's', 'del', 'b', 'strong', 'sub', 'sup'.
Parameters:
tag
: The HTML tag name to check.
Returns:
true
if tag
is an inline element, false
otherwise.
Implementation
bool isInline(String tag) {
return ["i", "em", "u", "ins", "s", "del", "b", "strong", "sub", "sup"]
.contains(tag);
}