Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-05 04:45:55

fk
New Member
From: Frankfurt, Germany
Registered: 2004-09-23
Posts: 8

4.0.3 (r1188) txp:file_download_description won't encode ampersands

I’m currently building a small band site with a mp3-download-section using a txp:file_download_list-generated “wrap-and-break” unordered list. I’m also (oh wonder ;) using a custom form for the download/list-items which looks like this:

<code><txp:file_download_link><txp:file_download_description />
</txp:file_download_link>, <txp:file_download_size format=“auto” decimals=“2” /></code>

Now five minutes ago a band member put a fresh file online which has an ampersand in it’s description, and I just noticed my page does not validate anymore … because that ampersand doesn’t get encoded ;). Don’t worry, I don’t want to over-dramatize(?) this – one could just encode it by hand if he really cares for all that w3c ;) – and I’m also aware that the file/upload/download stuff is still quite new to txp.

<em>(I tried to be a good boy and searched the forums before posting (but only found Custom Fields do not encode ampersands, but I believe that answer doesn’t fit here – but damn, an attribute like encode="html" would be such sweet thing!), but it’s damn late already and I hope I’m not totally missing out on something. Also forgive me for making this longer than it had to be, but… ;-).</em>

Last edited by fikifiki (2006-03-05 04:54:43)

Offline

Board footer

Powered by FluxBB