General Community > Scripting Help
[PHP/HTML] Disable html tags within a textarea
(1/1)
Doctor Deejay:
Okay, this has been bugging me for a few hours now and I can't find the answer. The weird thing is, it displays without any problems in the SMF editor, even with Javascript disabled. For my blogging system I have added a pages feature, which allows you to create and edit pages. The problem is, when editing a page, it loads the contents of the page from the database into the textarea and when I use html like '</textarea>' (it's supposed to support html), it replaces the html tags by < and &rt;, but in the editor, it should display the html tags like it does here instead. I've had the same problem before, because I wanted to add the ability to edit templates/css within the admin panel, but then I decided just to remove them. The pages feature is not something I want to remove and I'd prefer to keep it HTML based. Any thoughts?
Thanks! :)
Doctor Deejay:
I've figured out what the problem was, I've added a function that automatically converts &s to &, which caused this problem to happen. :( I'm sorry for the inconvenience guys, but it's working fine now :)
K@:
Doctor Deejay:
--- Quote from: K@ on May 24, 2012, 04:20:15 PM ---
--- End quote ---
Lol :P
K@:
Just teasin', Doc. ;)
Navigation
[0] Message Index
Go to full version