Had used the Markdown() in the index.php instead of htmlspecialchars(). Fixed now.