[wp-trac] [WordPress Trac] #4480: Output of index.php not xhtml conform when enclosing to <br /> tags in the_content arguments

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 16 14:34:12 GMT 2007


#4480: Output of index.php not xhtml conform when enclosing to <br /> tags in
the_content arguments
--------------------------+-------------------------------------------------
 Reporter:  huesforalice  |       Owner:  anonymous
     Type:  defect        |      Status:  new      
 Priority:  lowest        |   Milestone:           
Component:  Template      |     Version:  2.2      
 Severity:  minor         |    Keywords:           
--------------------------+-------------------------------------------------
 During theming I tried to call the the_content() function in my index.php
 in this way:

 {{{
 <?php the_content('<br /><br />Read the rest of this entry &raquo;'); ?>
 }}}

 Wordpress then produces output like this:

 {{{
 <a href="somelink" class="more-link"></p>
 <p>Read the rest of this entry &raquo;</a></p>
 }}}

 Which clearly is not valid xhtml.


 When calling the_content only with one <br />:

 {{{
 <?php the_content('<br />Read the rest of this entry &raquo;'); ?>
 }}}

 All is ok.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4480>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list