Hi all
Am using fckedito to provide my customers a way to enter / edit text at their will...
At the end, I want to retrieve the editor content and save it to a database...
But apparently, the retrieved content is mixed with nasty html tags! I want to avoid this...
I don't want to use client side javascript for this purpose... as suggested in many threads in this forum...
Is there a way to do this programmatically through java?
Your help is very much appreciated. Thanx.
-nat
Am using fckedito to provide my customers a way to enter / edit text at their will...
At the end, I want to retrieve the editor content and save it to a database...
But apparently, the retrieved content is mixed with nasty html tags! I want to avoid this...
I don't want to use client side javascript for this purpose... as suggested in many threads in this forum...
Is there a way to do this programmatically through java?
Your help is very much appreciated. Thanx.
-nat
Re: How to retrieve editor content without html???
Well,
this is a HTML editor, the purpose is, guess, to output HTML! Wouldn't it be easier to stick to a textarea since you don't want to have HTML output?
I have posted once how to extract plain text from XML/XHTML without effort. I'll repeat it for you: Use an empty XSL stylesheet with the Transformer. It will extract all plain text automatically. See here for a tutorial: http://www.oreilly.de/artikel/java_xslt_tips.html
Re: How to retrieve editor content without html???
You saved my day! You are my rockstar!! Thanx a lot!
-nat
Re: How to retrieve editor content without html???
Can you tell me how to retrieve the content with html tags as i am getting only text value by the tag: FCK.EditorDocument.selection.createRange().text
Thanks