
if (document.getElementById('htmlPreview') != null)
{
    var output = '&lt;br/&gt;&lt;h3&gt;Shows&lt;span class=\&quot;h3_dash\&quot;&gt; - &lt;/span&gt;&lt;a href=\&quot;http://www.virb.com/tacteel/shows\&quot;&gt;&lt;span class=\&quot;see_all\&quot;&gt;see all &lt;/span&gt;1&lt;/a&gt;&lt;/h3&gt;&lt;br/&gt;&lt;table&gt;&lt;br/&gt;&lt;tr &gt;&lt;br/&gt;&lt;td class=\&quot;col1\&quot;&gt;&lt;p&gt;May 24&lt;/p&gt;&lt;/td&gt;&lt;br/&gt;&lt;td&gt;&lt;p&gt;&lt;strong&gt;Strasbourg, France&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;br/&gt;&lt;td&gt;&lt;p&gt;&lt;a href=\&quot;http://www.virb.com/tacteel/shows/162066\&quot;&gt;Le Rafiot&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;br/&gt;&lt;td class=\&quot;col4\&quot;&gt;&lt;p&gt;TBA&lt;/p&gt;&lt;/td&gt;&lt;br/&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/table&gt;&lt;br/&gt;'; 
    // Remove initial br
    var output = output.replace(/&lt;br\/&gt;/, '');
    // Replace all br entities with br tag
    document.getElementById('htmlPreview').innerHTML = output.replace(/&lt;br\/&gt;/g, '<br/>');
}


document.write('\n<h3>Shows<span class=\"h3_dash\"> - </span><a href=\"http://www.virb.com/tacteel/shows\"><span class=\"see_all\">see all </span>1</a></h3>\n<table>\n<tr >\n<td class=\"col1\"><p>May 24</p></td>\n<td><p><strong>Strasbourg, France</strong></p></td>\n<td><p><a href=\"http://www.virb.com/tacteel/shows/162066\">Le Rafiot</a></p></td>\n<td class=\"col4\"><p>TBA</p></td>\n\n</tr>\n</table>\n'); // done
