title: how to get different id in body tag?
body: <p>I have placed the following code in joomla 2.5</p>
  
  <pre><code>&lt;?php
    $app = JFactory::getApplication();
    $menu = $app-&gt;getMenu()-&gt;getActive();
    $pageclass = '';
  
    if (is_object($menu))
      $pageclass = $menu-&gt;params-&gt;get('pageclass_sfx');
  ?&gt;
  
  &lt;body id="&lt;?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?&gt;"&gt;
  </code></pre>
  
  <p>But it's getting <code>default</code> for all pages.</p>
  
  <hr>
  
  <p>Ooops! its resulting this</p>
  
  <pre><code>&lt;body default""="" style="font-size: 100%;"&gt;
  </code></pre>