Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7433755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:43:22+00:00 2026-05-29T09:43:22+00:00

I’m having an issue with CDATA in Firefox. The paragraph tags under the <newsDesc>

  • 0

I’m having an issue with CDATA in Firefox. The paragraph tags under the <newsDesc> are correctly parsed in every browser except FF. However, <strong> and <br/> tags aren’t being parsed at all in any browser. I am using a XSLT transform jQuery plugin. I’ve included my HTML, XML, and XSL files.

I’ve been staring at this issue for way too long and am getting nowhere. I’ve done quite a bit of research but it hasn’t helped much.

Any suggestions would be greatly appreciated. Thanks!

HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
</head>
<body>
<div id="pagecontent"></div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://daersystems.com/jquery/transform/js/jquery.transform.js"></script>
<script>
    $(function() {
        $("#pagecontent").transform({xml: "test.xml", xsl: "test.xsl"});
    });
</script>
</body>
</html>

XML

<?xml version="1.0" encoding="windows-1252"?>

<news>
    <newsRelease newsId="1341" category="PRD" subcategory="SPP">
        <region>NA</region>
        <site>MCA</site>
        <country>US</country>
        <status>P</status>
        <headline>
            <![CDATA[Lorem Ipsum]]></headline>
        <subHeadline>
            <![CDATA[Lorem&trade;  <br />This is a headline.]]></subHeadline>
        <location><![CDATA[New York, NY]]></location>
        <language>English</language>
        <releaseDate>January 05, 2011</releaseDate>
        <releaseDate2></releaseDate2>
        <publishDate>01/05/2011</publishDate>
        <encrptSw>N</encrptSw>
        <newsDesc>
            <![CDATA[
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu quam nulla. Morbi tellus leo, dignissim et euismod in, volutpat ut mi. Ut a pharetra odio. Mauris dui magna, eleifend eget pellentesque a, tempus eget mi. Praesent luctus, lorem at egestas rutrum, mi massa pulvinar enim, quis porttitor arcu felis non enim. Integer vel diam ac augue pretium gravida. Duis ut arcu a neque commodo sodales. Sed sit amet nisl arcu, eu pulvinar mauris. </p>
<p>Curabitur at nisi nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean nisi erat, faucibus a posuere sed, blandit nec nisl. Fusce commodo vulputate tortor, at lacinia est porttitor et. Aliquam commodo nulla neque, nec fringilla felis. Sed sollicitudin aliquam mi, in egestas nunc suscipit sed. Donec sed odio massa, at auctor ipsum. Aenean vitae erat justo. Integer sed erat lectus, in faucibus dolor. </p>
<p>Proin molestie hendrerit auctor. Sed in quam libero. Quisque justo quam, vulputate a bibendum in, laoreet vel tortor. Praesent vel eros mi, at semper dolor. Praesent quis tincidunt justo.</p>
<p>Aenean varius, nisl quis tincidunt blandit, mi turpis laoreet ligula, at sagittis urna est ut sapien. Curabitur facilisis pharetra nisi quis imperdiet. Duis ac enim risus, in iaculis sapien. Fusce sit amet commodo felis. In eget nibh nisl, vel mollis magna. Praesent et velit quis erat suscipit malesuada.</p>
<p>Vestibulum imperdiet, elit at aliquet ullamcorper, odio orci posuere erat, sed facilisis sapien ipsum quis est. Suspendisse id mollis velit. Aenean tincidunt volutpat lacus ut dapibus. In tellus neque, lacinia sit amet feugiat id, venenatis vel sem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>
<p>For more on this feature, please visit: <br />
<a href="http://www.google.com">http://www.google.com</a></p>
            ]]>
        </newsDesc>
        <footers>
            <footer>
                <id>1381</id>
                <footerTxt>
                    <![CDATA[<strong>About this Service<br /></strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu quam nulla. Morbi tellus leo, dignissim et euismod in, volutpat ut mi. Ut a pharetra odio. Mauris dui magna, eleifend eget pellentesque a, tempus eget mi. Praesent luctus, lorem at egestas rutrum, mi massa pulvinar enim, quis porttitor arcu felis non enim. Integer vel diam ac augue pretium gravida. Duis ut arcu a neque commodo sodales. Sed sit amet nisl arcu, eu pulvinar mauris.   For more information, go to <a href="http://www.google.com">www.google.com</a>]]></footerTxt>
                <displayOrder>1</displayOrder>
            </footer>
            <footer>
                <id>1382</id>
                <footerTxt>
                    <![CDATA[<strong>About this Product<br /></strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu quam nulla. Morbi tellus leo, dignissim et euismod in, volutpat ut mi. Ut a pharetra odio. Mauris dui magna, eleifend eget pellentesque a, tempus eget mi. Praesent luctus, lorem at egestas rutrum, mi massa pulvinar enim, quis porttitor arcu felis non enim. Integer vel diam ac augue pretium gravida. Duis ut arcu a neque commodo sodales. Sed sit amet nisl arcu, eu pulvinar mauris.  For more information, please visit us at <a href="http://www.google.com">www.google.com</a>. ]]></footerTxt>
                <displayOrder>2</displayOrder>
            </footer>
        </footers>
        <multimedia>
            <images></images>
            <videos></videos>
            <podcasts></podcasts>
            <documents></documents>
        </multimedia>
        <rss url=""/>

    </newsRelease>
</news>

XSL

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="html" indent="yes" encoding="utf-8" omit-xml-declaration="yes" standalone="yes"/>
    <xsl:output />
    <xsl:template match="/news">
        <xsl:variable name="pageTitle" select="newsRelease/seo/pageTitle"/>
        <xsl:variable name="keywords" select="newsRelease/seo/keywords"/>
        <xsl:variable name="description" select="newsRelease/seo/description"/>
        <xsl:variable name="isImage" select="count(newsRelease/multimedia/images/image)"/>
        <xsl:variable name="isDoc" select="count(newsRelease/multimedia/documents/document)"/>
        <xsl:variable name="isIPOD" select="count(newsRelease/multimedia/podcasts/podcast)"/>
        <xsl:variable name="isVideo" select="count(newsRelease/multimedia/videos/video)"/>

        <h4 class="content-subtitle" style="width:250px;">Contacts</h4>
        <xsl:for-each select="newsRelease/contacts/contact">
            <xsl:variable name="emailAddr" select="email" />
            <p><a style="font-size:11px; font-family: Arial, Verdana, Helvetica, sans-serif; color:#397984;" href="mailto:{$emailAddr}"><xsl:value-of select="name"/></a>,&#160;<xsl:value-of select="companyName"/>,&#160;<xsl:value-of select="phoneNumber" /></p>
        </xsl:for-each>


        <xsl:if test="$isDoc>0">
            <div class="info-box right">
                <h5>Related Information</h5>
                <div id="info-padding"><strong>Document Download</strong></div>
                <xsl:for-each select="newsRelease/multimedia/documents/document">
                    <div id="info-padding"><img src="../images/download_img.jpg" height="14" width="14" border="0"  /> <xsl:variable name="documentSrc" select="@src" /><a href="{$documentSrc}">&#160;download</a></div>
                </xsl:for-each>
            </div>
        </xsl:if>

        <div class="news-subtitle"><xsl:value-of select="newsRelease/headline" /></div> <br />
        <strong><em><xsl:value-of select="newsRelease/subHeadline" /></em></strong>
        <p>  </p>
        <p><em><strong><xsl:value-of select="newsRelease/location"/>,&#160;<xsl:value-of select="newsRelease/releaseDate"/></strong> - </em>
            <xsl:value-of select="newsRelease/newsDesc" disable-output-escaping="yes" /></p>
        <xsl:for-each select="newsRelease/footers/footer">
            <p> <xsl:value-of select="footerTxt" /></p>
        </xsl:for-each>

    </xsl:template>
</xsl:stylesheet>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:43:23+00:00Added an answer on May 29, 2026 at 9:43 am

    Firefox does not support disable-output-escaping you try to use so that approach is not possible with Firefox or Mozilla browsers in general.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble keeping the paragraph square between the quote marks. In firefox the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.