📜  js 文本到 html - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:03.680000             🧑  作者: Mango

代码示例1
var textToHTML= function (str) {

    var dom = document.createElement('div');
    dom.innerHTML = str;
    return dom;

};