Welcome Guest, Not a member yet? Register   Sign In
how to html decode this text <p>\n\tooooooooooooooooooooooo<\/p>\n ?
#1

[eluser]dinisptc[/eluser]
how to html decode this text <p>\n\tooooooooooooooooooooooo<\/p>\n ?


i used ckeditor to edit the text and then it was saved in mysql database like this <p>\n\tooooooooooooooooooooooo<\/p>\n

now i am using rest api to send it to an ipad app
i did use these to functions below but its not working:


$row['htmlmb']=mb_convert_encoding($row['descriptive'], "UTF-8", "HTML-ENTITIES");
$row['htmldec']=htmlspecialchars($row['descriptive']);



Code:
function get_myprojects_admin($status,$user_id){



        $images_config = $this->config->item('images');


        $result=false;                    

$this->db->where('clientUID',$user_id);
        $this->db->where('status',$status);

        $this->db->order_by('project.dateCreation', 'DESC');

$query = $this->db->get('project');

        if ($query->num_rows() > 0) {
            foreach ($query->result_array() as $row) {
                $images_thumb_dir=$images_config['upload_path'].$user_id.'/'.$row['id'].'/avatar/thumbs/';
                $row['url']=base_url().'get_image.php?i='.$images_thumb_dir.$row['avatar'];

                $row['htmlmb']=mb_convert_encoding($row['descriptive'], "UTF-8", "HTML-ENTITIES");
                $row['htmldec']=htmlspecialchars($row['descriptive']);
                $result[] = $row;
            }
        }
        return $result;

    }
#2

[eluser]dinisptc[/eluser]
\n\tooooooooooooooooooooooo<\/p>\n

i want to show the text without the html tags

just

tooooooooooooooooooooooo

thanks
#3

[eluser]TheFuzzy0ne[/eluser]
Google is your friend.

http://php.net/manual/en/function.strip-tags.php




Theme © iAndrew 2016 - Forum software by © MyBB