Re: Grep Ampersands

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69804
interpreted = N
texte = That's the winning answer! Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 12/02/2008, at 10:34 AM, Donovan Brooke wrote: > Donovan Brooke wrote: >> Ki Song wrote: >>> Some of our product descriptions have an ampersand. >>> For example: Backpack & Table >>> >>> How do I either: >>> 1. Replace the & with a & >>> 2. Replace the & with an "and" >>> >>> I tried using grep, but putting an & into the search field seems >>> to "break" >>> the grep search. >> [convertchars][description][/convertchars] >> Donovan > > Oops, I should amend by reply with, if you store HTML in > your description field, then convertchars itself, will > null out the HTML, presenting the html as text. In this > case, you can either use grep or a custom convertchars > instead. > > ie. [convertchars db=conv_ands.db][description][/convertchars] > > > conv_ands.db > ---------------------------- > > FROMTO > && > > ---------------------------- > > > Donovan > > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > <- Web Development (specializing in eCommerce),-> > <- Desktop Publishing, Print Consulting, Labels -> > <-Glass Products, off-hand Classes/studio rental-> > PH:>(608) 770-3822 > TALK:>http://artglass-forum.com > WEB:> http://www.euca.us & http://www.egg.bz > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep Ampersands ( "Dan Strong" 2008)
  2. Re: Grep Ampersands ( Donovan Brooke 2008)
  3. Re: Grep Ampersands ( "Diane Blackmore (Cohesion)" 2008)
  4. Re: Grep Ampersands ( Charles Kline 2008)
  5. Re: Grep Ampersands ( "Diane Blackmore (Cohesion)" 2008)
  6. Re: Grep Ampersands ( Charles Kline 2008)
  7. Re: Grep Ampersands ( "Diane Blackmore (Cohesion)" 2008)
  8. Re: Grep Ampersands ( Stuart Tremain 2008)
  9. Re: Grep Ampersands ( Donovan Brooke 2008)
  10. Re: Grep Ampersands ( Donovan Brooke 2008)
  11. Re: Grep Ampersands ( "Diane Blackmore (Cohesion)" 2008)
  12. Re: Grep Ampersands ( Stuart Tremain 2008)
  13. Grep Ampersands ( Ki Song 2008)
That's the winning answer! Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 12/02/2008, at 10:34 AM, Donovan Brooke wrote: > Donovan Brooke wrote: >> Ki Song wrote: >>> Some of our product descriptions have an ampersand. >>> For example: Backpack & Table >>> >>> How do I either: >>> 1. Replace the & with a & >>> 2. Replace the & with an "and" >>> >>> I tried using grep, but putting an & into the search field seems >>> to "break" >>> the grep search. >> [convertchars][description][/convertchars] >> Donovan > > Oops, I should amend by reply with, if you store HTML in > your description field, then convertchars itself, will > null out the HTML, presenting the html as text. In this > case, you can either use grep or a custom convertchars > instead. > > ie. [convertchars db=conv_ands.db][description][/convertchars] > > > conv_ands.db > ---------------------------- > > FROMTO > && > > ---------------------------- > > > Donovan > > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > <- Web Development (specializing in eCommerce),-> > <- Desktop Publishing, Print Consulting, Labels -> > <-Glass Products, off-hand Classes/studio rental-> > PH:>(608) 770-3822 > TALK:>http://artglass-forum.com > WEB:> http://www.euca.us & http://www.egg.bz > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Greeting Card System (2000) Re:2nd WebCatalog2 Feature Request (1996) Problems appending to database (1997) WebCatalog2 Feature Feedback (1996) [LOOKUP] (1997) ShowNext Command (1997) Multiple fields on 1 input (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) [OT] I am old. (2003) PSC recommends what date format yr 2000??? (1997) OT: Apache ServerAlias (2003) For those of you not on the WebCatalog Beta... (1997) Extended [ConvertChars] (1997) Latest beta slow on [order] and [purchase] (1997) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Opinion: [input] should be called [output] ... (1997) [WebDNA] fastcgi 7+ & [cart]? (2010) snicker, snicker (1997) wo search help (1999) Variables for chat (1997)