function ToHtmlString(htmlStr) {
return toTXT(htmlStr).replace(/\<\;br[\&ensp\;|\&emsp\;]*[\/]?\>\;|\r\n|\n/g, "<br/>");
}
function toTXT(str) {
var RexStr = /\<|\>|\"|\'|\&| | /g
str = str.replace(RexStr,
function(MatchStr) {
return toTXT(htmlStr).replace(/\<\;br[\&ensp\;|\&emsp\;]*[\/]?\>\;|\r\n|\n/g, "<br/>");
}
function toTXT(str) {
var RexStr = /\<|\>|\"|\'|\&| | /g
str = str.replace(RexStr,
function(MatchStr) {