[Lift] Re: BBCode2XHTML

2009-06-18 Thread marius d.

Isn't Lift XSS safe by default ? ... in the sense that it applies the
proper escaping.

Br's,
Marius

On Jun 18, 2:06 pm, Viktor Klang viktor.kl...@gmail.com wrote:
 Hi guys!

 I'm in dire need of an XSS-safe and generally harmless way of allowing
 end-users to add some markup to texts.
 In the spirit of re-use and lack of time, I wonder if any of you have any
 libraries to recommend that can transform a String maybe containing BBCode
 to the same string but with xhtml compliant markup.

 Googled it a bit and saw KefirBB 
 http://sourceforge.net/projects/kefir-bb/and
 JavaBBCode https://javabbcode.dev.java.net/ but none of them seem lean
 enough (I mean, how much code does it need to transform a String??)

 So what's it gonna be guys, is there a saviour out there or will I need to
 pull out the Scala REPL?

 Cheers!
 --
 Viktor Klang
 Scala Loudmouth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: BBCode2XHTML

2009-06-18 Thread David Pollak
Lift's Textile support is what you want.
See the chat window on http://demo.liftweb.net  Enter I like *beer* into the
window and see what happens.

And yes, it's XSS safe.

On Thu, Jun 18, 2009 at 4:06 AM, Viktor Klang viktor.kl...@gmail.comwrote:

 Hi guys!

 I'm in dire need of an XSS-safe and generally harmless way of allowing
 end-users to add some markup to texts.
 In the spirit of re-use and lack of time, I wonder if any of you have any
 libraries to recommend that can transform a String maybe containing BBCode
 to the same string but with xhtml compliant markup.

 Googled it a bit and saw KefirBBhttp://sourceforge.net/projects/kefir-bb/and
 JavaBBCode https://javabbcode.dev.java.net/ but none of them seem lean
 enough (I mean, how much code does it need to transform a String??)

 So what's it gonna be guys, is there a saviour out there or will I need to
 pull out the Scala REPL?


 Cheers!
 --
 Viktor Klang
 Scala Loudmouth

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: BBCode2XHTML

2009-06-18 Thread Matt Williams

Theres a textile package available in the repository.
And its now 30x faster! :)

On Thu, 2009-06-18 at 13:06 +0200, Viktor Klang wrote:
 Hi guys!
 
 I'm in dire need of an XSS-safe and generally harmless way of allowing
 end-users to add some markup to texts.
 In the spirit of re-use and lack of time, I wonder if any of you have
 any libraries to recommend that can transform a String maybe
 containing BBCode to the same string but with xhtml compliant markup.
 
 Googled it a bit and saw KefirBB and JavaBBCode but none of them seem
 lean enough (I mean, how much code does it need to transform a
 String??)
 
 So what's it gonna be guys, is there a saviour out there or will I
 need to pull out the Scala REPL?
 
 
 Cheers!
 -- 
 Viktor Klang
 Scala Loudmouth
 
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---