<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<title>Untitled</title>
</head>
<body>
How is this done? I have a form with a textarea. When I type the caracter ' .
The text displayed in the textarea will change to \'. I do not want this behavior.
I tried the following and nothing worked
Thank you.<br><br>
Type:
Car '93 Porsche<br>
and the click submit. \ is added
<form name="test"
action="testurl.php"
method="get">
<?
$desc = (isset($desc)) ? $desc : "";
$test1 = urlencode($desc);
$test2 = rawurlencode($desc);
$test3 = urldecode($desc);
$test4 = htmlspecialchars ($desc);
$test5 = strip_tags($desc);
?>
<textarea name="desc" rows= cols= ><?=$desc?></textarea>
<input type="submit">
</form>
- <?=$test1?><br>
- <?=$test2?><br>
- <?=$test3?><br>
- <?=$test4?><br>
- <?=$test5?><br>
</body>