Hello,
I am using fgets to the extract the contents of a web file, separating the file into (links, forms, images, text,script,style) and writing the file locally for text translation purposes. The problem that I am running into is that I need a way to deal with script and style tags. More specifically I want to tell my script to place everything between the opening script and closing script into a single var, while keeping its \n (new line)breaks.
any suggestions and examples will be greatly appreciated.
TIA