0

I am using imperavi redactor for my project. I have a requirement where by i need the plain text from the textarea instead of the content with HTML tags. I did not find any such option in the API. Is there a way out our i will have to do it manually?

user2561997
  • 443
  • 1
  • 6
  • 18

1 Answers1

1

There's an API method for this:

https://imperavi.com/redactor/docs/api-services/cleaner/#s-getflattext (link updated)

I can't find the equivalent API method for the new Redactor X, but generally speaking, you can just strip the html tags yourself. Check this answer.

Ivan Sivak
  • 7,178
  • 3
  • 36
  • 42
  • Is there a way to Print the content of the Text area, that i can use out of the box? – user2561997 Jan 04 '15 at 08:05
  • Perhaps you could get the content of the redactor and put it to a special
    and then print this
    only. Check out how to print only the content of particular
    container for example here: http://stackoverflow.com/questions/2255291/print-the-contents-of-a-div
    – Ivan Sivak Jan 05 '15 at 08:13