|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Another Question... String Handling (Strip HTML)OK, this isn't so stupid a question.
Now I've got the string I want. It's HTML tagged and I want to display only the text, not the code; and I certainly don't want to execute the code. I can spend the next two hours or three hours writing a procedure that looks for each occurance of < and stips out every up to >, but it seems there should already be something that strips HTML from a string. Is there something in Cold Fusion that strips HTML from string, or does someone have an easy strip routine??? I don't know which tags will be used an what the content of those tags will be. The < > seem it would be the most reliable key. Thanks Robert B. Harrison Director of Interactive Services, Ext. 205 155 East Main Street Smithtown, NY 11787 P (631) 361-4400 F (631) 361-6400 http://www.linx.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:25:2056 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/25 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:25 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.25 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54 |
|
|
|
|
|
Re: Another Question... String Handling (Strip HTML)You can use CF list functions to get every other list item
using delimiters of "<>". This of course would assume the html is correct and there are no stray "<>"s in the actual text, but anything you write would probably make the same assumptions. Robert Harrison wrote: > OK, this isn't so stupid a question. > > Now I've got the string I want. It's HTML tagged and I want to display > only the text, not the code; and I certainly don't want to execute the > code. > > I can spend the next two hours or three hours writing a procedure that > looks for each occurance of < and stips out every up to >, but it seems > there should already be something that strips HTML from a string. > > Is there something in Cold Fusion that strips HTML from string, or does > someone have an easy strip routine??? I don't know which tags will be > used an what the content of those tags will be. > > The < > seem it would be the most reliable key. > > Thanks > > > Robert B. Harrison > Director of Interactive Services, Ext. 205 > > 155 East Main Street > Smithtown, NY 11787 > P (631) 361-4400 > F (631) 361-6400 > http://www.linx.com > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:25:2058 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/25 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:25 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.25 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |