Getting HTML from XML with JavaScript/jQuery

后端 未结 2 1133
星月不相逢
星月不相逢 2020-12-21 16:01

I\'ve got an XML document that contains a tag that has well-formed HTML content. I need to get that HTML into my page using JavaScript. However, due to CMS issues, the HTML

2条回答
  •  -上瘾入骨i
    2020-12-21 16:37

    Not overly clean but could you not use something like found in this example JQuery Object to Sring and do something like... var myHTML = $('

    ').append($(menuArray[n]).find('content').clone()).remove().html();

    Ugly I know but should work

提交回复
热议问题