By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,942 Members | 1,922 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,942 IT Pros & Developers. It's quick & easy.

text which is typed in textarea should not store the enter key html tag, spacebar key

P: 1
I have a textarea on my page careers.jsp that has a "template" string of tag textarea to be inputted by the user. (It lets them write a message, using aboutyourself as a place holder for the aboutyou .) After the user finishes the "template", I put it into a second desp.jsp tag textarea that actually replaces aboutyourself with whatever the user has texted in career.jsp tag textarea this is waht i need. But the propblem is if user pressed an enter key or spacebar key from the keybord those keys are also storing as html tags like <div><br></div> for Enter key and &nbps; for spacebar key how to over come this Issue i need solution for this in jQuery im not avare of php
Feb 15 '16 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
But the propblem is if user pressed an enter key or spacebar key from the keybord those keys are also storing as html tags like <div><br></div> for Enter key and &nbps; for spacebar key
this is either a problem with the used input editor, if one is used (plain <textarea> fields do not show this behaviour) or with the server code processing the user input.
Feb 15 '16 #2

Post your reply

Sign in to post your reply or Sign up for a free account.