Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Stuart Dallas
On Friday, 29 April 2011 at 22:04, Andre Polykanine wrote:
Hi everyone,
 I allow my users to put some Html into their blogs. I filter it using
 a great tool called HtmLawed and written by Dr. Santosh Patnaik (if
 you're reading this, many thanks to you!).
 However, I would like to give them a possibility to mark-up their text
 in a more convenient way for beginners (such as Wiki or something
 similar).
 I searched through http://phpclasses.org/ but didn't find anything.
 Could you suggest me something?
 And one more question: maybe some of you already have a handy solution
 to process smilies? Say, a user writes :) and this is replaced by an
 image in my directory.
 Thanks in advance!

Markdown is a pretty good option for a wiki: 
http://michelf.com/projects/php-markdown/

Textile is another option (and supports tables which markdown does not): 
http://textile.thresholdstate.com/

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Peter Lind
On 30 April 2011 15:13, Stuart Dallas stu...@3ft9.com wrote:
 On Friday, 29 April 2011 at 22:04, Andre Polykanine wrote:
 Hi everyone,
 I allow my users to put some Html into their blogs. I filter it using
 a great tool called HtmLawed and written by Dr. Santosh Patnaik (if
 you're reading this, many thanks to you!).
 However, I would like to give them a possibility to mark-up their text
 in a more convenient way for beginners (such as Wiki or something
 similar).
 I searched through http://phpclasses.org/ but didn't find anything.
 Could you suggest me something?
 And one more question: maybe some of you already have a handy solution
 to process smilies? Say, a user writes :) and this is replaced by an
 image in my directory.
 Thanks in advance!

 Markdown is a pretty good option for a wiki: 
 http://michelf.com/projects/php-markdown/

 Textile is another option (and supports tables which markdown does not): 
 http://textile.thresholdstate.com/


MarkItUp is a favourite plugin editor of mine - will allow you to work
with a lot of different syntaxes and users don't need to know them.

http://markitup.jaysalvat.com/home/

If you're considering sanitizing html instead of using a markup
language to convert into html, I'd read
http://blog.astrumfutura.com/2010/08/html-sanitisation-the-devils-in-the-details-and-the-vulnerabilities/
before settling on any tool to do the job. Far as I can tell, HtmLawed
isn't actually capable of sanitizing properly, according to the author
- unless it's since been updated to fix the problems mentioned in the
blog.

Regards
Peter

-- 
hype
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
/hype

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Andre Polykanine
Hello Peter,

And what would you recommend as an Html sanitizing tool?

-- 
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion

 Original message 
From: Peter Lind peter.e.l...@gmail.com
To: Stuart Dallas
Date created: , 4:26:41 PM
Subject: [PHP] Wiki formatting class or something similar


  On 30 April 2011 15:13, Stuart Dallas stu...@3ft9.com wrote:
 On Friday, 29 April 2011 at 22:04, Andre Polykanine wrote:
 Hi everyone,
 I allow my users to put some Html into their blogs. I filter it using
 a great tool called HtmLawed and written by Dr. Santosh Patnaik (if
 you're reading this, many thanks to you!).
 However, I would like to give them a possibility to mark-up their text
 in a more convenient way for beginners (such as Wiki or something
 similar).
 I searched through http://phpclasses.org/ but didn't find anything.
 Could you suggest me something?
 And one more question: maybe some of you already have a handy solution
 to process smilies? Say, a user writes :) and this is replaced by an
 image in my directory.
 Thanks in advance!

 Markdown is a pretty good option for a wiki: 
 http://michelf.com/projects/php-markdown/

 Textile is another option (and supports tables which markdown does not): 
 http://textile.thresholdstate.com/


MarkItUp is a favourite plugin editor of mine - will allow you to work
with a lot of different syntaxes and users don't need to know them.

http://markitup.jaysalvat.com/home/

If you're considering sanitizing html instead of using a markup
language to convert into html, I'd read
http://blog.astrumfutura.com/2010/08/html-sanitisation-the-devils-in-the-details-and-the-vulnerabilities/
before settling on any tool to do the job. Far as I can tell, HtmLawed
isn't actually capable of sanitizing properly, according to the author
- unless it's since been updated to fix the problems mentioned in the
blog.

Regards
Peter

-- 
hype
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
/hype


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Wiki formatting class or something similar

2011-04-30 Thread Peter Lind
On 30 April 2011 21:26, Andre Polykanine an...@oire.org wrote:
 Hello Peter,

 And what would you recommend as an Html sanitizing tool?


I go by htmlpurifier when I need to sanitize html. I generally try to
avoid the issue though, by having users use other markup languages (I
like markdown but dislike textile). That's much faster and just as
secure - downside is that your users might not be as used to it.

Regards
Peter

-- 
hype
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
/hype

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Wiki formatting class or something similar

2011-04-29 Thread Andre Polykanine
Hi everyone,
I  allow my users to put some Html into their blogs. I filter it using
a  great  tool  called HtmLawed and written by Dr. Santosh Patnaik (if
you're reading this, many thanks to you!).
However, I would like to give them a possibility to mark-up their text
in  a  more  convenient  way  for beginners (such as Wiki or something
similar).
I searched through http://phpclasses.org/ but didn't find anything.
Could you suggest me something?
And one more question: maybe some of you already have a handy solution
to process smilies? Say, a user writes :) and this is replaced by an
image in my directory.
Thanks in advance!

  

-- 
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Wiki formatting class or something similar

2011-04-29 Thread Gerardo Benitez
Hi Andre,

I did a intranet with TextWiki (
http://pear.php.net/package/Text_Wiki/redirected )
TextWiki is a reliable Class to create Wiki using Php.

Regards.
Gerardo.


On Fri, Apr 29, 2011 at 6:04 PM, Andre Polykanine an...@oire.org wrote:

 Hi everyone,
 I  allow my users to put some Html into their blogs. I filter it using
 a  great  tool  called HtmLawed and written by Dr. Santosh Patnaik (if
 you're reading this, many thanks to you!).
 However, I would like to give them a possibility to mark-up their text
 in  a  more  convenient  way  for beginners (such as Wiki or something
 similar).
 I searched through http://phpclasses.org/ but didn't find anything.
 Could you suggest me something?
 And one more question: maybe some of you already have a handy solution
 to process smilies? Say, a user writes :) and this is replaced by an
 image in my directory.
 Thanks in advance!



 --
 With best regards from Ukraine,
 Andre
 Skype: Francophile
 Twitter: http://twitter.com/m_elensule
 Facebook: http://facebook.com/menelion


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Gerardo Benitez
-
www.webseficientes.com.ar
DiseƱo web, programaciĆ³n, Seo