jmasterx
jmasterx

Reputation: 54113

Italic tags are showing up

I have this:

<span class="fc-event-title" style="background-color:#5E37AD;border-color:#5E37AD">1.test fred 5 &lt;i&gt;(9.5h)&lt;/i&gt;</span>

and I see it like this: enter image description here

I cannot change the span tag, that is part of fullcalendar. What could I do to see italics rather than the tag itself?

Thanks

Upvotes: 0

Views: 90

Answers (2)

Abe Miessler
Abe Miessler

Reputation: 85046

To expand on @donderpiet's answer, &lt; and &gt; are encoded versions of < and >.

So if you have <div>hey</div> in your code it will be rendered as hey, but if you encode the greater/less than signs like so: &lt;div&gt;hey&lt;/div&gt; it will be rendered as <div>hey</div>.

Hope that makes sense.

UPDATE

Based on your comment you will want the HtmlDecode or HtmlEncode functions.

Upvotes: 0

Piet van Dongen
Piet van Dongen

Reputation: 1639

Change this:

1.test fred 5 &lt;i&gt;(9.5h)&lt;/i&gt;

To this:

1.test fred 5 <i>(9.5h)</i>

Upvotes: 3

Related Questions