Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-21 18:37:44

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,609
Website

Ampersand encoding?

Is it right that textile 2 no longer encodes &ampersands?

Input text:
A *simple* example with my title & following text

Output from new textile c/o threshholdstate
<p>A <strong>simple</strong> example with my title & following text</p>

Output from prevous textile c/o textism
<p>A <strong>simple</strong> example with my title &#38; following text</p>

Weird: here on the forum preview it works fine and I thought the textile had been upgraded here too.

(possibly this should be in bug reports)

Last edited by jakob (2006-11-21 18:39:01)


TXP Builders – finely-crafted code, design and txp

Offline

#2 2006-12-04 20:39:56

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Ampersand encoding?

Jakob,

I noticed the same thing this morning, and now I can’t get a page to validate. Can anyone provide information on why ampersand isn’t encoded?

update
I filed the bug report on the textile threshold page.

Last edited by variaas (2006-12-04 21:23:57)

Offline

#3 2006-12-04 23:41:24

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Ampersand encoding?

Yup, it’s a bug in the current version of Textile.

Ampersands are correctly encoded everywhere except in plain old paragraph text in “full” textile mode. Seems I tested all the exceptions but missed the obvious case.


Alex

Offline

#4 2006-12-05 09:10:38

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,609
Website

Re: Ampersand encoding?

Thanks for confirming Alex. Can you post when you’ve updated it? Thank you.

EDIT: it looks like it’s fixed on the classTextile.php from threshholdstate. Can this be dropped into the txp install? A quick text-diff between the classTextile.php in textpattern (SVN) and the version from threshholdstate shows a number of differences.

Last edited by jakob (2006-12-05 09:27:32)


TXP Builders – finely-crafted code, design and txp

Offline

#5 2006-12-08 03:00:47

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Ampersand encoding?

Jakob, where did you see the fix? I tried the Threshold site, but still see the issue with not encoding the ampersand.

Offline

#6 2006-12-08 09:50:44

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,609
Website

Re: Ampersand encoding?

I’m sorry, you appear to be right. It’s correctly encoded for the XHTML output, not for the text output, though. I re-downloaded the classtextile.php from textile.thresholdstate.com for use on a vanilla forum site and it works fine there.


TXP Builders – finely-crafted code, design and txp

Offline

#7 2007-01-14 09:51:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,028
Website GitHub Mastodon Twitter

Re: Ampersand encoding?

I also have a problem with ampersands which are not encoded in 4.0.4 when in the body of the text (in the write tab). Visited threasholdstate and there is no link for textile (there is one for 404 which is what I am running anyway). At the moment I just wright &#38; but if there is a fix can somebody point me to the link?

Last edited by colak (2007-01-14 09:52:05)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2007-01-16 06:55:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,028
Website GitHub Mastodon Twitter

Re: Ampersand encoding?

bump


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#9 2007-01-16 07:52:55

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Ampersand encoding?

The Textile that runs there is from the latest revision of the 4.0.x branch (see the “rev 2182” in the bottom right corner?). You can try grabbing a copy of it from svn (scroll to the very bottom of the page for download).

Offline

#10 2007-01-16 08:40:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,028
Website GitHub Mastodon Twitter

Re: Ampersand encoding?

:)… Thanks mary. the new version will hopefully solve the problem…


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB