I can't figure out how to post this without the characters being translated so I just used (html) in place of the characters. Here's the post:
I can't get htmlentities to work. This is my code right from the php manual:
<?php
$str = "A 'quote' is <b>bold</b>";
echo htmlentities($str);
echo htmlentities($str, ENT_QUOTES);
?>
It says it should output this:
A 'quote' is <b>bold</b>
A (html)quote(html) is <b>bold</b>
But it outputs this:
A 'quote' is <b>bold</b>
A 'quote' is <b>bold</b>
I'm trying to translate textfield entries into html. So "I'm" becomes "I(html)m"