On Fri, 25 Jun 2010, Jelina Korhecz wrote: > Hi Dan, > > As far as I'm aware, this is still necessary. However, if you're > doing a huge replacement of & to & you can use BBEdit or (the free > version) Text Wrangler to find and replace over multiple files. > (However this program is only available on the mac--I'm not sure if > Windows/Linux has a similar application.)
Linux (or any Unix system) has many tools to do the job: sed, awk, or any decent text editor. On GNU/Linux, for example: sed -i -e 's/&/\&/g' -e 's/&/\&' *html > If you need a hand with using BBEdit/Text Wrangler, feel free to drop > me a line :) > > On Fri, Jun 25, 2010 at 3:39 PM, Dan Webb <[email protected]> wrote: > > Hi folks, > > > > Years ago, I use to painstakingly and religiously convert & to & > > when ever I encountered it (HTML 4.01 Strict doctype). > > > > It's still pegged as invalid by the W3C validator, but is it really > > still necessary these days? What could possibly go wrong in modern > > browsers? > > > > I'm talking specifically here about ampersands in URLs that are > > provided to me by database vendors, which I have no control over; I'm > > about to start inserting literally 100s of them into static html > > pages. -- Chris F.A. Johnson, <http://cfajohnson.com> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] *******************************************************************
