Welcome Guest, Not a member yet? Register   Sign In
HTML codes showing in viewpage HTML data
#4

[eluser]mi6crazyheart[/eluser]
I used that "html_entity_decode" but now all the EMBED video codes are getting print rather than the original video. I also tried to use "htmlspecialchars_decode" but it also not doing the same thing(showing the codes but not the original video)

My Controller :
Code:
$this->form_validation->set_rules('CommentMessage', 'Comment', 'htmlspecialchars_decode|trim|required|min_length[2]|max_length[5000]|xss_clean');

My Model :
Code:
$CommentMsg = auto_link(auto_typography($this->input->post('CommentMessage')),'both', TRUE);
$this->db->set('CommentContent', $CommentMsg);


Messages In This Thread
HTML codes showing in viewpage HTML data - by El Forum - 04-04-2010, 10:57 AM
HTML codes showing in viewpage HTML data - by El Forum - 04-05-2010, 08:25 PM
HTML codes showing in viewpage HTML data - by El Forum - 04-06-2010, 12:54 AM
HTML codes showing in viewpage HTML data - by El Forum - 04-27-2010, 12:53 PM
HTML codes showing in viewpage HTML data - by El Forum - 04-27-2010, 01:04 PM
HTML codes showing in viewpage HTML data - by El Forum - 04-28-2010, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB