|
12-20-2003, 10:14 AM | #1 |
Green Mole
Join Date: Dec 2003
Location: norway
Posts: 2
|
Entire page is stripepd due to over-efficient script-stripping
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 |
12-20-2003, 10:20 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem indexing site due to backslash | F.Keniki | Troubleshooting | 1 | 12-26-2006 07:34 AM |
New To Script | glengall1 | Feedback & News | 1 | 09-08-2006 09:11 PM |
Search through an entire word - especially for german textes | janek | Mod Submissions | 0 | 12-20-2005 08:30 AM |
Bug due to cron | Edomondo | How-to Forum | 0 | 11-30-2005 12:38 AM |
spider entire site | summitmn | Troubleshooting | 1 | 05-03-2004 04:30 PM |