www.webdeveloper.com
Results 1 to 2 of 2

Thread: Should Atom xhtml be escaped and inside <![CDATA

  1. #1
    Join Date
    Jan 2007
    Posts
    43

    Should Atom xhtml be escaped and inside <![CDATA

    The default implementation of my php template does this but when I view the pages in Firefox, I'm not seeing any text and all the html is escaped and is nested like this:

    Code:
    <entry>
      <summary></summary>
      <content><![CDATA  .....character replaced html here......]</content>
    </entry>
    shouldn't Atom take un-escaped (non-replaced) special characters and html? What am I doing wrong?

    Thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    Quote Originally Posted by webnick2007 View Post
    shouldn't Atom take un-escaped (non-replaced) special characters and html?
    no, atom is xml, and xml needs to be well formed, html doesn't.
    Don't foget that a lot of "special characters" are HTML-specific entities, &copy;, &nbsp;, and &quot; for example. these tokens need to be converted to raw xml/unicode entities; substituting the semantic label text for a digit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles