none
Double Escaping special characters in the title...

    Question

  • WLW 2009
    Drupal 6 (via the Movable Type API)

    The title as specified in the WLW editor is "Third Test! & _ – < >: abc"

    The first time the blog entry is created, the XML generated for the title by WLW is...
         <member>
          <name>title</name>
          <value>
           <string>Third Test! &amp;amp; _ &amp;ndash; &amp;lt; &amp;gt;: abc</string>
          </value>
         </member>

    Then I go into Drupal and save it as its supposed to be (above). 

    If I go open the post from WLW again, Drupal provides the following title tag..

      <member><name>title</name><value><string>Third Test! &amp; _ - &lt; &gt;: abc</string></value></member>
    
    If I save it without even editing the title text, WLW sends back...
         <member>
          <name>title</name>
          <value>
           <string>Third Test! &amp;amp; _ - &amp;lt; &amp;gt;: abc</string>
          </value>
         </member>
    
    
    (the XML going back and forth was recovered using a nice MS product called Fiddler)
    Monday, August 31, 2009 10:28 PM

All replies

  • That right, we are escaping once for the HTML and escaping once as it is packaged into XML.  You might be able to work around this issue by changing the value of requiresHtmlTitles in your wlwmanifest.xml file. 

    http://msdn.microsoft.com/en-us/library/bb463260.aspx

    I think people have worked around this bug in Drupal before by doing this.
    -Brandon Turner [MSFT]
    Wednesday, September 9, 2009 10:14 PM