$text = preg_replace('#(https?://[^\s<"\']*)#','<a href="">
There must be an equivalent
on 5/31/06 15:32, Ted Wolfley at [EMAIL PROTECTED] wrote:
Hi,
Have you tried encoding=none or encoding=METAHTML? I store html including links in databases and display it without any problems.
Ted
From: Dan Stein [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 31, 2006 3:10 PM
To: [email protected]
Subject: Re: Witango-Talk: Displaying text with links
I think this is a job for regex but I am not sure how to do it.
on 5/31/06 14:37, Dan Stein at [EMAIL PROTECTED] wrote:
I am using FMP to store text with CSS imbedded so I can let my client format descriptions with bold italic colors etc.
So they type this
Recommended for ages 7-13
Visit <a href="" href="http://www.comev.org.br>COMEV.">http://www.comev.org.br>COMEV</a>. <http://www.comev.org.br%3eCOMEV%3c/a%3e.>
Abraham -- An epic journey to the Promised Land, a miraculous birth to aged parents, and the story of God's greatest test: Abraham must kill his beloved son upon a sacrificial altar.
It loads into the Database this
<BR>Recommended for ages 7-13<BR>Visit <a href="" href="http://www.comev.org.br>COMEV</a>.
">http://www.comev.org.br>COMEV</a>.<BR><BR></SPAN> <http://www.comev.org.br%3eCOMEV%3c/a%3e.%3cBR%3e%3cBR%3e%3c/SPAN%3e>
<SPAN STYLE= "font-weight: bold;" >Abraham</SPAN>
<SPAN STYLE= "" > -- An epic journey to the Promised Land, a miraculous birth to aged parents, and the story of God's greatest test: Abraham must kill his beloved son upon a sacrificial altar.<BR><BR></SPAN>
But the Hrref needs to be a link. Do I need to encode the column when I display it?
The style works fine but not the link
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
--
Dan Stein
FileMaker 7 Certified Developer
Digital Software Solutions
799 Evergreen Circle
Telford PA 18969
Land: 215-799-0192
Cell: 610-256-2843
Fax 413-410-9682
FMP, WiTango, EDI,SQL 2000, MySQL, CWP
[EMAIL PROTECTED]
www.dss-db.com
"I destroy my enemies when I make them my friends."
Abraham Lincoln
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
