HI,
I am new to rails and lately was introduced to FCK editor for formatting text.
Do you have any idea about how can we sanitize strings.
I am using FCK editor for my text areas but because of that the data in the database is completely filled with HTML tags used for formatting the data/.
eg: <p><b> text </b></p> etc...
But I need to show the formatted text at some instances whereas normal text at other instances.
Do let me know if we can somehow sanitize the text and strip off the html tags from it.
Hpricot is a very flexible HTML parser, based on Tanaka Akira’s HTree and John Resig’s JQuery, but with the scanner recoded in C (using Ragel for scanning.) I’ve borrowed what I believe to be the best ideas from these wares to make Hpricot heaps of fun to use.