Here's what I recommend, Ken.

- Markdown for comment formatting (it has a very simple syntax that's  
easy to learn)
- The new RDiscount gem for converting Markdown into HTML
- Look at a whitelist plugin for limiting HTML to certain tags

In other words, people could write blog entries and comments using  
Markdown. The text is saved in Markdown, and then converted to HTML  
in your views.

By using a whitelist, you could then limit the final HTML output to  
only a few tags (strong, em, links, etc.). Anything else will be  
sanitized and/or removed.

-- Patrick

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to