Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $feedback['testimonial_preview'] = "<p>Holy Trinity Greek Orthodox Church has been doing business with Datamax for the last ten years. I get calls almost weekly from competitors asking for a shot at our business, but it is not worth my time to even give them a chance. The products and services we get from you meet or exceed our expectations in every case.</p>
- <p>Datamax</p>";
- if (true == preg_match('/<p*?>|\n|<br>/i',substr($feedback['testimonial_preview'],-50)))
- {
- // if so, split it up so we can return the first one - after adding the ellipse
- $results = preg_split('/<p*?>|\n|<br>/i',$feedback['testimonial_preview'],-1,PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
- $feedback['testimonial_preview'] = trim($results[0]);
- }
Add Comment
Please, Sign In to add comment