If you want to avoid removing lis containing blabla unless blabla is further nested, use this:
$("ul li > a:contains('blabla')").parent().remove();
Otherwise, the first li from this HTML will be removed even though "blabla" is not where you might be targeting it:
-
Some nested content here:
Blablabla
- Some text