Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strip " from output

Status
Not open for further replies.

gtbikerider

Technical User
May 22, 2001
81
0
0
GB
Hi

I'm using
<img src="#ImageSRC#" alt="#ImageName#" />
to show an image and alt tag. The problem is that the ImageName sometimes contains a " (to mean inches) and this causes the tag to close early when rendered eg

<img src="ruler.gif" alt="12" ruler" />

Is there a way to force the ImageName to display as alt="12&quote; ruler"
?



--
John
 
Try the following:

Code:
<img src="#ImageSRC#" alt="#Replace(ImageName, """", "&quot;", "ALL")#" />

Hope this helps

Wullie

YetiHost - Quality Coldfusion 7/Windows Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Hi Wullie

That worked a treat - Thanks. Thanks for your great hosting too!

--
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top