0

I have a web page which has a part to render filtered entries from twitter. This part of the page is created using XSLT (I am using Umbraco CMS). The problem is that when there is special characters such as ' in the twitter entry, although I used "disable-output-escaping ="yes"" but in IE it is rendered as & apos ;. In other browsers it is fine. What should I do to handle this issue

Regards,

scunliffe
  • 62,582
  • 25
  • 126
  • 161
Nami
  • 1,215
  • 11
  • 21
  • `'` character entity should be render in any browser as `'`. Unless there is no character entity, but something as `'` that would be render as `'` as it should. Please, add input sample and desired output in order to clarify this question. –  Nov 15 '10 at 23:05

1 Answers1

1

The problem is that when there is special characters such as ' in the twitter entry, although I used "disable-output-escaping ="yes"" but in IE it is rendered as & apos ;. In other browsers it is fine. What should I do to handle this issue

Without showing your specific code you will receive only general answers to such question.

Here is an example of two ways to produce an apostrophe without needing at all DOE:

This transformation:

<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output omit-xml-declaration="yes" indent="yes"/>

 <xsl:template match="/">
  <p>It's Monday today</p>
  <p>It&apos;s early morning</p>
 </xsl:template>
</xsl:stylesheet>

when applied on any XML document (not used), produces this output:

<p>It's Monday today</p>
<p>It's early morning</p>

and it is displayed by IE like this:

 It's Monday today

 It's early morning
Dimitre Novatchev
  • 240,661
  • 26
  • 293
  • 431