网上摘的

载入外部text、htmlText,去掉多余换行符      split("\r\n").join("\r");

原文地址:https://www.cnblogs.com/leon3286/p/1793646.html