XHTML special chars in title line
XHTML special chars in title line
On my website http://www.server-sql.de/ I have problems to get it validated with http://validator.w3.org/ - the "&" is not coded with htmlspecialchars(). Prohably in the next version the title and subtitle may be converted and entities used when necessary?
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Actually this is just a template matter. If you use the s9y default templates or bulletproof, all characters should be encoded...you can add the "@escape" modifier to your title attributes yourself in your custom template.
Regards,
Garvin
Actually this is just a template matter. If you use the s9y default templates or bulletproof, all characters should be encoded...you can add the "@escape" modifier to your title attributes yourself in your custom template.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thank you for your quick support! The title line now looks like this:
Where has the @escape-option to be applied?
Code: Select all
<title>{$head_title|@default:$blogTitle} {if $head_subtitle} • {$head_subtitle}{/if}</title>
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Use this:
Regards,
Garvin
Use this:
Code: Select all
<title>{$head_title|@default:$blogTitle|@escape} {if $head_subtitle} • {$head_subtitle|@escape}{/if}</title>
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Great! Now it works fine:
http://validator.w3.org/check?uri=http% ... ver-sql.de
http://validator.w3.org/check?uri=http% ... ver-sql.de