Welcome Guest, Not a member yet? Register   Sign In
avoid escape $this->db->get();
#5

[eluser]Herlevsen[/eluser]
You need to use the html entities for the tags. have a look here http://www.w3schools.com/html/html_entities.asp.

Best practice would be to store it with the html entities in your database if thats always how you want to output it, IMO. But you could also do it on output by using either htmlspecialchars or htmlentites.
http://php.net/manual/en/function.htmlentities.php
http://php.net/manual/en/function.htmlspecialchars.php


Messages In This Thread
avoid escape $this->db->get(); - by El Forum - 05-21-2013, 07:28 AM
avoid escape $this->db->get(); - by El Forum - 05-21-2013, 12:10 PM
avoid escape $this->db->get(); - by El Forum - 05-22-2013, 04:10 AM
avoid escape $this->db->get(); - by El Forum - 05-23-2013, 04:39 PM
avoid escape $this->db->get(); - by El Forum - 05-23-2013, 05:43 PM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 01:55 AM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 02:33 AM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 04:25 AM
avoid escape $this->db->get(); - by El Forum - 05-24-2013, 05:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB