我有各種不同的HTML字符串可以將100個字符(剝離的內容,而不是原始的)切割成無需剝離標籤且不會破壞HTML的HTML字符串。 原始的HTML字符串(288字): $content = "<div>With a <span class='spanClass'>span over here</span> and a
<div class='divClass'>nested div over <d
這裏是不是爲我工作: <?php
$string = 'I have a dog and his name is <a href="http://www.jackismydog.com">Jack</a> and I love him very much because he\'s my favorite dog in the whole wide world and nothing could