marcodeltongo / thematic

Automatically exported from code.google.com/p/thematic
0 stars 0 forks source link

meta description breaks with html in excerpt #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add html code (e.g. an <img />) to a post excerpt
2. publish post
3. view post

What is the expected output? What do you see instead?
All the excerpt should be contained withing the content="" of the meta tag.
 Instead the "/>" makes it end early, and leaves orphaned text in the header.

What version of the product are you using? On what operating system?
0.8 on WP 2.7

Please provide any additional information below.
In header.php you could simply replace the_excerpt_rss(); with
htmlspecialchars( the_excerpt_rss() );.  Even better you could strip html
tags from the excerpt before inserting it into the meta description.

Original issue reported on code.google.com by tpangb...@gmail.com on 5 Feb 2009 at 6:55

GoogleCodeExporter commented 9 years ago
Already fixed in SVN revisions

Original comment by chris.gossmann@googlemail.com on 5 Feb 2009 at 7:29