'.allMatches(ret).length <= 1; if (stripPTags) { const otherBlockTags = { 'table', 'pre', 'ol', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'div', }; for (final tag in otherBlockTags) { // we check for the close tag as the opening one might have attributes if (ret.contains('$tag>')) { stripPTags = false; break; } } } if (stripPTags) { ret = ret.replaceAll('
', '').replaceAll('
', ''); } return ret.trim().replaceAll(RegExp(r'(