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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SteevenSathish
    New Member
    • Feb 2016
    • 1

    #1

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

    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
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    Working...