Hi,
so here's my problem. I entered text in a CKEditor textarea and when I press submit I'm trying to store it in a javascript variable. Thing is, because of the html tags (from what I gattered), it gives me an "Unexpected token ILLEGAL" error. I tried strip_tags(), replace and some php functions but it doesn't seem to work at all to resolve it. Tried google and searching on this forum too but without a search function, it's kinda hard :P
Thanks in advance !
No one has any suggestions ?
No one has any suggestions ?
It's hard to understand what
It's hard to understand what's your problem, what have you tried and what do you want.
If you don't want HTML, then I don't understand why you're using CKEditor instead of a textarea.
You say that you're storing the data in a javascript variable, but then you move to talk about PHP if I'm guessing it right, because strip_tags() doesn't exist in javascript but it's a PHP function.
So I can't really suggest you anything except start from the most basic code and then start adding things little by little, be sure that you understand what you're doing on each step.
jquery strip html tags?
Perhaps this might help to process textarea data?
http://frobert.com/en/2011/01/21/strip-html-jquery/
I'm sorry for the lack of
I'm sorry for the lack of informations, I'll try to be more specific. I wanted to use the text in a javascript variable but when I take the text, it seems that because it was entered in CKEditor (maybe because of the html tags), it gave me an error. I'm using CKEditor to properly show the text (let's say a blog post) but I would like to retrieve the text to put it in meta tags and things like that but with the html tags it just looks weird. Dunno if it's well explained now
Removing the html tags after submitting a text
Hy,
You can be more speccific. Some screenshot if you have.