| Posted by Toby A Inkster on 05/25/07 15:04 
Ben wrote:
 > replace __abc__ with <b>abc</b> in a string
 
 Assuming this is for a simplified text markup system, don't reinvent the
 wheel.
 
 Take a look at:
 
 - Markdown
 - Textile
 - BB Code
 - Wiki markup
 
 There are freely available PHP implementations of each of these. Some are
 in PEAR -- you'll need to use Google for the others.
 
 --
 Toby A Inkster BSc (Hons) ARCS
 [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
 [OS: Linux 2.6.12-12mdksmp, up 90 days, 22:48.]
 
 Non-Intuitive Surnames
 http://tobyinkster.co.uk/blog/2007/05/25/non-intuitive-surnames/
  Navigation: [Reply to this message] |