That was a different poster mate! 
Regardless, I already posted some code of views that have the issue (see a couple posts earlier) - and here’s the controller and model code for the first one (the one where the variables - fetched from db - can contain html-tags like
<p>
, which are for some reason displayed in the browser instead of being parsed):
Controller:
function Event()
{
parent::Controller();
$this->load->helper('typography');
$this->load->helper('form');
$this->load->library('validation');
$this->load->model('eventmodel');
$this->load->model('bandmodel');
$this->data['title'] = "Events";
}
function getUpcoming($count = 0)
{
$data['upcoming'] = $this->eventmodel->getUpcoming($count);
if($data['upcoming']->num_rows() > 0)
{
$this->data['main'] = $this->load->view('event/upcoming', $data, TRUE);
}
else
{
$data['upcoming'] = $this->eventmodel->getPast($count);
$this->data['main'] = "<h3>Afgelopen evenementen:</h3>";
$this->data['main'] .= $this->load->view('event/upcoming', $data, TRUE);
}
$this->load->view('layout/layout', $this->data);
}
function index()
{
return $this->getUpcoming(10);
}
Model:
function Eventmodel()
{
parent::Model();
}
function getUpcoming($count = 0)
{
// $this->output->enable_profiler('TRUE');
$this->db->where('date >=', date("Y-m-d"));
$this->db->limit($count);
$this->db->orderby('date');
return $this->db->get('pand_events');
}
And here’s the second one, this is the one that has it near the <?=anchor(’...’)?> function:
Controller:
function Admin()
{
parent::Controller();
$this->load->library('validation');
$this->load->helper('form');
}
function index()
{
if (! $this->session->userdata('admin_id')) { redirect('/admin/login'.$this->uri->uri_string(), 'REFRESH'); }
// adminpanel
$this->data['title'] = "Adminpanel";
$this->data['main'] = $this->load->view('admin/panel', NULL, TRUE);
$this->load->view('layout/layout', $this->data);
}
(no model is used here)
However, I suspect that the code I just posted is pretty much irrelevant to my problem. As far as I know I’m not doing anything special here - I’m not using my own libraries and haven’t touched CI core either, and the problem I’m describing is happening pretty much *everywhere*. These are just two examples of pages where the problem randomly presented itself when I wanted to recreate it to show you what’s going wrong, but in reality I have this problem all over my website - which is why I think the problem is more likely to be config-related or something like that? I have a standard CI installation and pretty much a standard config as far as I can tell.