p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: links in blogs


Message #1 by "Lawrence" <lawrence@k...> on Thu, 11 Apr 2002 00:59:09 -0400
stupid question: if you write weblog software and you want to allow people to include links then you
can't hit the text with htmlspecialchars(), right?

Message #2 by "Nikolai Devereaux" <yomama@u...> on Thu, 11 Apr 2002 10:44:30 -0700
Not necessarily.  Just use regular expressions to see if any links exist,
and generate the appropriate <a...></a> tags around them after any other
embedded HTML has already been escaped.


nik


  Return to Index