目录问题精华回答先说第2种情况第1种情况会更复杂一些。改造后其他回答精选:问题
I need to split long string into a array with following constrains: The input will be HTML string, may be full page or partial.