Update htmlparse.h

This commit is contained in:
wibyweb 2023-10-20 18:38:43 -04:00 committed by GitHub
parent 4ace1fbbea
commit b56d16281a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,8 @@ void htmlparse(){
titlefound = 3;
//remove </title> from end of title by inserting null at location of <
titlesize -= 8;
if(titlesize < 0) //avoids this: <titleMy videos</title>
titlesize = 0;
title[titlesize] = 0;
//printf("\n%s",title);
}