現在、HTML(XMLファイルから取得)を変数に保存しようとしていますが、どういうわけか奇妙なエラーが発生します。それに加えて、私が使用していなくても、ブラウザはそのHTMLコードで使用されている画像を読み込もうとしているようです。
コードは次のとおりです。
// Load the data from the XML node.
var description = $(this).find('description').text();
var descriptionWithTags = description.replace('<p>','');
descriptionWithTags = descriptionWithTags.replace('</p>','########');
// Remove HTML Tags and add the Line-Breaks
var convertedString = $(descriptionWithTags).text();
convertedString = convertedString.replace('########','<br /><br />');
console.log("E");
// Save it in an array.
contentRSS[articleCount] = convertedString;
編集:次の行を削除すると、再び機能しますが、理由はわかりません。
descriptionWithTags = descriptionWithTags.replace('<p>','');