Hmmm...I see you call strip_tags() a bunch of times in your update code, and that should be removing all HTML from each of the variables you pass to it, the id, the entry, the title, etc.
Additionally, you're then calling htmlspecialchars() on each variable, which is changing all HTML-centric characters such as "<" and ">" to their respective entities. If any tags get passed strip_tags(), this will furthur keep them from working.
These lines are likely stripping all HTML from your entries before they're added to your MySQL database:
Code:
$id = htmlspecialchars(strip_tags($_POST['id']));
$month = htmlspecialchars(strip_tags($_POST['month']));
$date = htmlspecialchars(strip_tags($_POST['date']));
$year = htmlspecialchars(strip_tags($_POST['year']));
$time = htmlspecialchars(strip_tags($_POST['time']));
$summary = htmlspecialchars(strip_tags($_POST['summary']));
$entry = htmlspecialchars(strip_tags($_POST['entry']));
$title = htmlspecialchars(strip_tags($_POST['title']));
|