Home Backend Development PHP Tutorial Function code for converting html to txt text in php

Function code for converting html to txt text in php

Jul 25, 2016 am 08:59 AM

  1. /**

  2. * Function to convert html to txt text
  3. * Edit bbs.it-home.org
  4. * at 2013/5/11
  5. */

  6. function html2text($str){

  7. $str = preg_replace("/