I an edit in my Opencart code, however after looking at a tutorial on foreach loops many highlight the importance of using htmlspecialchars to prevent injections.
Do I need to use it on the following code?
<?php foreach ($totals as $total) { ?>]]>
<?php if ($total['title'] == "First Class") { $total['text'] = "Delivery"; } ?>
<?php if ($total['title'] == "48Hr Courier") { $total['text'] = "Delivery"; } ?>
<?php if ($total['title'] == "24Hr Courier") { $total['text'] = "Delivery"; } ?>
I see real_escape_string is another security feature used