Handling no-html case and no string at all case.