RedCloth, restricting input?

F

Fredrik Jagenheim

Hi,

I'm writing a message board, where I'd like to use RedCloth for the text input.

However, I don't trust my users not to abuse headers, attributes and
general HTML.

Getting rid of headers and attributes should be easy, just substitute
the tags before parsing it through RedCloth. But doing this with HTML
seems a bit heavy handed. The best would be if I could get RedCloth to
escape HTML the way it does for <pre> tags.

Any ideas if that's possible, or have a much better idea? :)

//F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top