//格式化標題
function htmlTextFormat(text) {
var temp = replaceAll(text, "\r\n", "");
temp = replaceAll(temp, "<br>", "");
temp = replaceAll(temp, "<p>", "");
temp = replaceAll(temp, "</p>", "");
temp = replaceAll(temp, "“", "“");
temp = replaceAll(temp, "”", "”");
temp = replaceAll(temp, "&", "&");
return temp;
}
function replaceAll(src, oldText, newText) {
return src.replace(new RegExp(oldText,"gm"), newText);
}