Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

"safe" html / emoticon library for forums?

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone know of a free/open source libraries for allowing "safe" html and emoticons in forums/blogs/etc.?

I have a site where users enter postings/blog entries and I want to give them the ability to do some formatting, but (for obvious reasons) don't want them to enter straight html. I could write something myself but there has to be something out there.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess http://www.dynarch.com/projects/htmlarea/ is what you are looking for.

Or search "Web based HTML editor" in www.GrabAll.com
 
Michael J. Makunas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. That might do the trick. But I'm not sure how "safe" it is. I want to be able to prevent people from doing anything that will screw up the rendering of the page. But I'll play with it and see.
 
Michael J. Makunas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTMLArea has a ton of functionality but it's not really safe and to make it safe I'd end doing just as much work as if I wrote what I need myself. All I really want is to do what this boards does and have a small set of "bracket tags" that will get parsed into html. Looks like I'll have to relearn regex
 
author & internet detective
Posts: 41184
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Michael,
I was looking around for something similar a couple of months ago. Didn't find anything though. I did learn that I really only need to provide a subset of UBB. Our users don't require anywhere near the level of sophistication that JavaRanch users do.
 
Michael J. Makunas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Michael,
I was looking around for something similar a couple of months ago. Didn't find anything though. I did learn that I really only need to provide a subset of UBB. Our users don't require anywhere near the level of sophistication that JavaRanch users do.



Yeah, pretty much my thoughts exactly. I've given up searching and am going to implement something very very simple. I was just hoping I could avoid relearning regex.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic