Click to See Complete Forum and Search --> : handling Double Qoutes


prasad
02-10-2003, 07:10 AM
In Search Engine development how to handle Quotes.

Say for ex, "Search this" ---> Its an Exact Phrase

"search this" too" ----> how to interpret this

" Search this " too"----> how to interpret this


Can we handle this with java scrip and if yes then How.

Thanks khalidali63

Basic Question is how to interpret

"search this" too" ----> how to interpret this

" Search this " too"----> how to interpret this\

is it "search this" too
or "Search this too"
or "serach this" "too"

khalidali63
02-10-2003, 07:21 AM
You can use escape character in JavaScript
\"search this\"
Bu I 'd recomend using HTML predefined entities for this purpose.
get a string from user and the replace any special characters with predefined HTML entity values.
the above statement would look like this
"search this"

THis will be safe and standard you can replace it anywhere you want with the qoute(").

Hope this helps..

cheers

Khalid