Hi Dan and Soren

Soren - the below Url is a good example of what I mean.

Dan, yes, search for the closing ">" might do the trick (count < and then
see if there are the same >'s) , but then again, if I have

<img src="ima

Even tho I close the tag with the > I don't think the link afterwards will
show, like this: 

<P><IMG src="http://www.ze...    >
     <p><a href="viewItem.asp?idProduct=778">More...</a>

Any recommendatiosn for this case? I don't really want to strip HTML tags,
cos if the img tag is complete - I do want the image to show.
But if you send me that script anyway, I would appreciate it

Thanks again!
Moshe



-----Original Message-----
From: Dan Powderhill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 23, 2004 10:15 AM
To: [EMAIL PROTECTED]
Subject: RE: [ASP] Counting "s



Well looking for pairs of quotes could still leave you in the middle of a
tag.... take this string :-

This is a string <img src="image.gif"

That'll still not work in the browser.

You want to look for pairs of < and >, if you're in between them then you
need to find the end of the tag, if not, then you don't. Alternatively strip
out all of the HTML tags. I have a function that'll do this - can dig it out
if you need it.

Dan
www.diado.com

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 September 2004 02:23
To: [EMAIL PROTECTED]
Subject: Re: [ASP] Counting "s


What is an example of the string you are grabbing?

Soren






Moshe Tapnack <[EMAIL PROTECTED]>
09/22/2004 05:08 PM
Please respond to active-server-pages
 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        [ASP] Counting "s


Hi all

I have a script drawing the first X chars for a descriotion of a product.
After that, there's a link to a page.

Th thing is that sometimes, on the X-th char, its in the middle of a <img>
tag - in which case both the image wont show (except for the dreaded X), 
and
also - the "more" link wont work, because the brwoser thinks its still in
the <img> tag.

So I thought a way to overcome this would be to count apostophes in th
string. If its even - then its fine, and its odd, there is a tag that's
open, so I better insert a ">  to close the tag.

That would at least allow the "more" link to show properly, but it still
doesn't solve the "missing" image issue...

Also - I ran into trouble looking for " - cos everytime you have to use
doubles.....

Any tips?

Thanks!
Moshe




--------------------------------------------------------------------- 
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links



 




[Non-text portions of this message have been removed]




---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links



 




---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links



 







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to