PHP - remove

后端 未结 7 2463
梦如初夏
梦如初夏 2020-11-27 15:15

Hey, I need to delete all images from a string and I just can\'t find the right way to do it.

Here is what I tryed, but it doesn\'t work:

preg_replac         


        
7条回答
  •  情深已故
    2020-11-27 15:21

    $this->load->helper('security');
    $h=mysql_real_escape_string(strip_image_tags($comment));
    

    If user inputs

    
    

    In the database table just insert character this #

    Works for me

提交回复
热议问题