added html detection for koala framework