RodgerRafter
Programmer
I'm trying to take input from an HTML text form and store it in mySQL with HTML tags so that the output appears like the users input. My problem is that I don't know how to recognize the return key so that I can turn it into "<br>".
My code already checks each character of input and .inserts "\" when c.equals("\"").
What can i do to achieve the equivalent of c.equals(The RETURN KEY)?
Is there another way I can check to see if a RETURN character is in the text so that I can change it to <br>?
Thanks.
My code already checks each character of input and .inserts "\" when c.equals("\"").
What can i do to achieve the equivalent of c.equals(The RETURN KEY)?
Is there another way I can check to see if a RETURN character is in the text so that I can change it to <br>?
Thanks.