php Programming Glossary: is_open
Using PHP substr() and strip_tags() while retaining formatting and without breaking HTML http://stackoverflow.com/questions/2398725/using-php-substr-and-strip-tags-while-retaining-formatting-and-without-break  works. function html_cut text max_length tags array result is_open false grab_open false is_close false in_double_quotes false..  symbol text i result . symbol switch symbol  case ' '  is_open true  grab_open true  break case ' '  if in_double_quotes  in_double_quotes.. false  else  in_single_quotes true break case ' '  if is_open in_double_quotes in_single_quotes   is_close true  is_open false.. 
 
 
     
      |