find replace not working in ie
<p>Could anyone tell me why the following code doesnt work in ie? it works in every other browser and just comes up as undefined in ie:</p>

<pre><code>var infoTemplate = '&lt;div style="text-align:left"&gt;&lt;h4 style="color:#0068a6;font-size:16px;margin:0px 0px 10px 0px;"&gt;%Title&lt;/h4&gt;&lt;strong&gt;%Tel&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;%Add&lt;/div&gt;';
var seletedMarker = null;

function composeInfoString(row) {
    var $row = $(row);
    return infoTemplate.replace('%Title', $row.find('.itemtitle a').html())
        .replace('%Tel', $row.find('.tel').html())
        .replace('%Add', $row.find('.add').html());
}
</code></pre>

<p>%Title, %Tel, %Add all come up as undefined in IE. Any help gratefully apreciated.</p>
