Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-15 20:42:08

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Site slogan/tagline

After upgrading a site from 4.0.6 to 4.0.7, HTML tags in the site slogan (<txp:site_slogan />) are getting Textiled (I guess; HTML special characters are getting converted somewhere). Is this as it should be? I didn’t see anything about this in HISTORY.txt.


Code is topiary

Offline

#2 2009-01-15 23:20:21

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Site slogan/tagline

OK, so <txp:site_slogan /> is indeed applying htmlspecialchars before output, and I presume this is new behavior in 4.0.7. Easy enough for me to work around, as I only ever have one <txp:site_slogan /> tag on a website, and can simply replace it with my marked-up slogan. Any possibility of giving <txp:site_slogan /> the escape attribute? Just askin’…


Code is topiary

Offline

#3 2009-01-15 23:35:16

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Site slogan/tagline

site_slogan isn’t textiled, just html-escaped, which is intentional. No escape attribute planned, because it’s not just used for the site_slogan tag, but also in other places where site_slogan is expected to be plain text instead of HTML.

Offline

#4 2009-01-16 00:27:31

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Site slogan/tagline

Thanks, as always, for the explanation.


Code is topiary

Offline

#5 2009-01-25 02:44:22

fdsafdsa
Member
From: cn
Registered: 2007-04-19
Posts: 47
Website

Re: Site slogan/tagline

slogan with html code… it’s not avaiable in 4.0.8 … just became plain text

Offline

Board footer

Powered by FluxBB