Welcome Guest, Not a member yet? Register   Sign In
Mini Textile Library - Updated
#3

[eluser]Lone[/eluser]
Thanks for the suggestion on PHP Markdown - but what I am trying to achieve with this is just a simple output of text rather then a full markup parser. The best thing is that this is 1kb of extra code as opposed to a full parser that is being used for just some of its simple functionality on a commonly loaded page.

The real reason for using this as opposed to others is that I ideally use this for a 'description' field. So in the site we are working on at the moment the user can enter a description for the item their selling and is displayed on the site after being parsed by Mini Textile.

Instead of replacing every double linebreak ('/n/n') with a <br /> we use a paragraph - Ive just added the strong and emphasis tags as a little add on.

Not sure what you mean by the $text variable - I thought it would be destroyed automatically after the function is finished?


Messages In This Thread
Mini Textile Library - Updated - by El Forum - 01-23-2008, 12:59 AM
Mini Textile Library - Updated - by El Forum - 01-23-2008, 01:40 AM
Mini Textile Library - Updated - by El Forum - 01-23-2008, 02:05 AM
Mini Textile Library - Updated - by El Forum - 01-23-2008, 02:38 AM
Mini Textile Library - Updated - by El Forum - 01-23-2008, 02:58 AM
Mini Textile Library - Updated - by El Forum - 01-23-2008, 04:54 AM
Mini Textile Library - Updated - by El Forum - 01-23-2008, 07:36 AM
Mini Textile Library - Updated - by El Forum - 01-23-2008, 07:42 AM
Mini Textile Library - Updated - by El Forum - 01-28-2008, 03:45 PM
Mini Textile Library - Updated - by El Forum - 05-16-2008, 06:15 AM
Mini Textile Library - Updated - by El Forum - 05-18-2008, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB