Originally posted by gizzmo
$message = 'my name is gilbert "the magnificant" also know as the great one';
when I parsed this I get my name is Gilbert
Huh???
This works fine for me:
<?php
$message = 'my name is gilbert "the magnificant" also know as the great one';
echo $message;
?>
I would bet you are doing something like this:
echo '<input type="text" name="foo" value="'.$message.'">';
In that case, the HTML ends up like this:
<input type="text" name="foo" value="my name is gilbert "the magnificant" also know as the great one">
The value= part ends with the first quote.
You need to use [man]htmlentities[/man] to put stuff into HTML. Like this:
echo '<input type="text" name="foo" value="'.htmlentities($message).'">';