Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
markup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2010 at 11:06 UTC
Updated:
13 Sep 2010 at 17:36 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedCannot reproduce.
Which theme are you using?
Comment #2
mnicholas commentedI've placed a demonstration at my (embryonic) blog:
http://blog.mgn.org.uk/
Different tags seem to exhibit different behaviour, underline for example. I've placed bold tags in both the "Site Name" and the "Slogan" and they appear correctly on the page, but also appear in the <title>. Firefox & chrome display these as plain text in the window title, maybe other browsers do different? Theme must be the default since I've done nothing to the change the apperance.
It'll take ages to format the title here, so I've uploaded a file.
Comment #3
jacineI can reproduce.
Front page:
<title><b>bold tag</b> in my site name | <b>bold tag</b> in my slogan</title>Node:
<title>Pertineo <b>tag</b> | <b>bold tag</b> in my site name</title>I'm not positive if this is the right way to fix it, but here's my attempt. Note: This doesn't fix the node title, because that has already gone through a check_plain(), which escapes the tags, before attempting to strip_tags(). This is no different in Drupal 6 though.
Comment #5
Jeff Burnz commentedsub
does strip_tags allow through html entities - doesn't filter_xss_admin allow them? I can't remember so just posing the question.
Powered by Dreditor.
Comment #6
damien tournoud commented#461938: Core should consistently filter_xss_admin() on $site_slogan and check_plain $site_name