mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
$.ajax({
url: pomContentUrl,
- dataType: "text",
success: function(data) {
- var text = data.replace(/</g,'<');
+ var text = data.content.replace(/</g,'<');
text=text.replace(/>/g,">");
mainContent.find("#artifact-content-text" ).html(text);
prettyPrint();
fileContentUrl+="&p="+encodeURIComponent(file.substringBeforeLast("/"));
$.ajax({
url: fileContentUrl,
- dataType: "text",
success: function(data) {
- var text = data.replace(/</g,'<');
+ var text = data.content.replace(/</g,'<');
text=text.replace(/>/g,">");
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
mainContent.find("#artifact-content-text" ).html(text);