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

[eluser]Herlevsen[/eluser]
I must have been very tired when i wrote my reply. I see now that you dont want to output the <br>, but just want a new line, when i thought it was the opposite (which seemed pretty strange).

It is your jquery that escapes it, when you use the text method

Code:
$("#prodName").text($(this).attr("data-nome"));
http://api.jquery.com/text/

Instead you need to use the html method
http://api.jquery.com/html/


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