ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 1st, 2005, 08:41 AM
WeBoat WeBoat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 61 WeBoat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 5 m 43 sec
Reputation Power: 5
Detect HTML elements in a text variable.

Does anyone know of a function or code which will detect HTML elements in a plain text variable?

I have a plain text string variable containing the content of an email, which I want to detect any HTML type elements (http, mailto, etc.) and output a new variable with the html elements transformed into clickable href's.

I thought I saw something that did this a few years ago, but now I can't locate the code.

Reply With Quote
  #2  
Old February 2nd, 2005, 11:58 AM
kaasu kaasu is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 58 kaasu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 1 m 4 sec
Reputation Power: 5
You can look at www.cflib.org for a UDF that might help. Here is any example

http://cflib.org/udf.cfm?ID=664

Hope it helps

Quote:
Originally Posted by WeBoat
Does anyone know of a function or code which will detect HTML elements in a plain text variable?

I have a plain text string variable containing the content of an email, which I want to detect any HTML type elements (http, mailto, etc.) and output a new variable with the html elements transformed into clickable href's.

I thought I saw something that did this a few years ago, but now I can't locate the code.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Detect HTML elements in a text variable.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT