&infin; not displaying inside span tag <p>I am currently having an issue with getting any HTML entity to display while inside a span. I am currently trying to get <code>&amp;infin;</code> to show up if my object has no destroy date. If I move the entity outside the span it will appear. Below is the code before it is rendered:</p> <pre><code>&lt;tr&gt; &lt;th&gt; Deactivate Date &lt;/th&gt; &lt;td&gt; &lt;span edit&gt; &lt;%= text_field_tag 'destroy_date', @account_type.destroy_date %&gt; &lt;/span&gt; &lt;span show&gt; &lt;%= @account_type.destroy_date.present? ? @account_type.destroy_date : '&amp;infin;'.html_safe %&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre> <p>Here is how the code is rendered if @account_types.destroy_date is not present.</p> <pre><code>&lt;tr&gt; &lt;th&gt; Deactivate Date &lt;/th&gt; &lt;td class="clickable"&gt; &lt;span edit="" style="display: none;"&gt; &lt;input id="destroy_date" name="destroy_date" type="text" last-value="" class="hasDatepicker"&gt; &lt;/span&gt; &lt;span show="" style="display: inline-block;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre>