I’m putting html variable inside php var but they aren’t escaped correctly so I have problem: who can help me? here here it is the code:
$var['foo'] = "<p>$coord->name</p><p>$coord->address</p><a href=\"<?php echo site_url('info_hospital/$id'); ?>\">Details</a>";
where it’s the problem ?
Hmm… several errors in there, but this should work: