title: Apply navigation <li> classes to child <a> anchors, Wordpress nav
body: <p>I would like to change the standard navigation on a Wordpress site from</p>
  
  <pre><code>&lt;ul&gt;
     &lt;li class='active'&gt;&lt;a&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>to be:</p>
  
  <pre><code>&lt;nav&gt;
    &lt;a class='active'&gt;&lt;/a&gt;
  &lt;nav&gt;
  </code></pre>
  
  <p>I have managed to wrap with a nav element and remove both the ul and li tags, but I still want the 'active' class to be added but to the anchor.</p>
  
  <p>This is what I currently have:</p>
  
  <pre><code>$menu = wp_nav_menu( array( 
              'theme_location' =&gt; 'primary',
              'container' =&gt; 'nav',
              'echo' =&gt; false
          ) ); 
  
  echo strip_tags($menu, '&lt;nav&gt;&lt;a&gt;');
  </code></pre>
  
  <p>I can do this with JS but I want to use PHP and do everything on the back end.</p>