I am displaying records from a mysql db in a dhtml text scroller via php. Unfortunately if there is a single qoute in the record it blows up the javascript scroller.
Does anyone have any suggestion as to how to escape the single qoutes, should I do it when outputting the record? Maybe do a regular expression match to find any single qoutes and escape them for javascript... Not sure what the syntax would be for that.
Thanks for any ideas.