HI,
I have some string from XML file, and I I want to replace all “& lt;, and & gt;” … in “< and ‘>“
this is the AJAX call (jQuery):
$.ajax({
type: "GET",
url: "xml.xml",
dataType: "html",
success: function(xml) {
alert(xml);
$(xml).find('reslult').each(function(){
var bid = $(this).find('bid').text();
$('.Sign2').text(bid);
});
}
});
I can’t use “DataType:XML”, because XML file is beginning with ….. 🙁
Thanks !
Alexander,
You can use two string replace functions before your $(xml)… line, like so: