摘要:
HTMl内容的切取,找了很多都不行或有乱码,然后我组合了一个。 1 /** 2 * Truncates text. 3 * 4 * Cuts a string to the length of $length and replaces the last characters 5 * with the ending if the text is longer than length. 6 * 7 * @param string $text String to truncate. 8 * @param integer $le... 阅读全文