bgarrels / textpattern

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

Rss feed in 4.3 RC: Missing filter in <title>-tag:& -> &amp; #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a article with a "&" in title
2. RSS Output will not work correctly
3.

What is the expected output? What do you see instead?
Output: /?rss=1
-----------------------------------------------------
.
<item><title>A test: & &#62;test&#60;</title>
.
-----------------------------------------------------

It should be:
<item><title>A test: &amp; &#62;test&#60;</title>

What version of the product are you using? On what operating system?
TXP 4.3 + PHP5

Please provide any additional information below.

Original issue reported on code.google.com by send.me....@gmail.com on 15 Oct 2010 at 11:52

GoogleCodeExporter commented 9 years ago
Cannot reproduce. On my testbed, an article titled "A test: & <test>" results 
in this RSS element:

<item><title>A test: & </title>
<content:encoded>...

Ampersands in titles are stored as encoded entities in the database and used 
as-is for feeds with tags stripped : 
http://code.google.com/p/textpattern/source/browse/development/4.x/textpattern/p
ublish/rss.php?r=3399#106 

Did you create this particular article through the default "Write" form? 

Do you run any plugins whihc might interfere?

Original comment by r.wetzlmayr on 15 Oct 2010 at 7:13

GoogleCodeExporter commented 9 years ago
Okay, the bug is in the "Leave text untouched" option. You will see it, when 
you switch "Article Markup" on "Leave text untouched" in the "Write" form (or 
in the preferences "Use Textile" -> "Leave text untouched").

----
Did you create this particular article through the default "Write" form? 
Yes.
Do you run any plugins whihc might interfere?
No plugins are installed.

Original comment by send.me....@gmail.com on 16 Oct 2010 at 12:19

GoogleCodeExporter commented 9 years ago
The option "Leave text untouched" is applied to the title as well as to the 
body text. I do not think this a bug.

Original comment by r.wetzlmayr on 16 Oct 2010 at 9:15

GoogleCodeExporter commented 9 years ago
It is invalid: http://www.w3.org/TR/xhtml1/guidelines.html#C_12

Original comment by send.me....@gmail.com on 16 Oct 2010 at 9:55

GoogleCodeExporter commented 9 years ago
I know. When you deliberatly choose to "leave text untouched", simply enter 
escaped ampersands, and you're done.

Original comment by r.wetzlmayr on 16 Oct 2010 at 10:38

GoogleCodeExporter commented 9 years ago
Okay.

Original comment by send.me....@gmail.com on 16 Oct 2010 at 11:11

GoogleCodeExporter commented 9 years ago

Original comment by r.wetzlmayr on 17 Oct 2010 at 5:59