PDA

View Full Version : Entire page is stripepd due to over-efficient script-stripping


bordsenius
12-20-2003, 10:14 AM
Hi there. My first post.
I have played around with phpdig, and it looks very good.

But a snag or two har emerged, the most serious one is that all pages on my website have javascript at both the start and the end of every page.

And by the looks of it, the phpdigCleanHtml-function will strip away everything from the beginning to the end of all my pages.

The function should probaly be modified to remove all scripts , not everythig between the frist script start end the last script ending.

A lot of webpages have counters that are javascript-based at the end of every page, so this is an event that will happen quite frequently.

bordsenius

Charter
12-20-2003, 10:20 AM
Hi. In the config file change define('CHUNK_SIZE',2048); to something like define('CHUNK_SIZE',200); for such pages. A lower chunk size breaks the page into smaller chunks that are fed to the phpdigCleanHtml function for tag removal.