Hi guys,
I am using tinyMCE editor. In my textarea, I want to let user type some html like <table></table> and store that in db just like that, <table></table>.
However, what I am getting is:
<table></table>
Now, if I go to the edit form for the item that contains that html piece and I update it, what I get in my database is <table></table>.
Can someone please explain how I can store <table> as <table> in one single step?
bibiki
18
Posting Whiz
Recommended Answers
Jump to PostLook at
valid_elements
:
Jump to PostWhat about using
htmlspecialchars_decode()
in your textareaExample:
<textarea rows="" cols="" name=""><?php echo htmlspecialchars_decode($data['content']); ?></textarea>
All 7 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
bibiki
18
Posting Whiz
cereal
1,524
Nearly a Senior Poster
Featured Poster
bibiki
18
Posting Whiz
gabrielcastillo
40
Web Developer
cereal
commented:
good suggestion!
+13
cereal
1,524
Nearly a Senior Poster
Featured Poster
bibiki
18
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.