So I have a form set to gather information people want to use on their site. But I have a glitch. When they hit the enter button in the form to make a new line it inserts a <br> into the form. BUT here is the problem. While that does indeed create a new line it will also create 2 new lines if they edit the form. How do I fix this? This is a snip of the code: /* string replace bad characters */
Help with a glitch
0
So I have a form set to gather information people want to use on their site. But I have a glitch. When they hit the enter button in the form to make a new line it inserts a <br> into the form. BUT here is the problem. While that does indeed create a new line it will also create 2 new lines if they edit the form. How do I fix this? This is a snip of the code:
/* string replace bad characters */
$badCharacters = array("'", "'", "'", """, """, "é", Chr(13));
$replaceCharacters = array(''', '‘', '’', '“', '”', 'é', '<br>');
/* string replace bad characters */
$badCharacters = array("'", "'", "'", """, """, "é", Chr(13));
$replaceCharacters = array(''', '‘', '’', '“', '”', 'é', '<br>');
Next Topics on Trending Feed
-
0