Home
TeamSite
Bold and italics in an HTML page's < TITLE > tag
tvaughan
Hi,
If I display any text that is bolded or italicized in between the < TITLE> tags of an HTML page generated by a TPL, the page title shows up with tags like < EM> and < STRONG>.
For example, if I have this WYSWIG:
News Blurb
Should Be
Verbatim
Then this is what I get in the title of the web page:
< U>< Strong>News Blurb< /Strong>< /U> < Strong>< Em>< U>Should Be< /U>< /Em>< /Strong> Verbatim
(I added the space beetween the '<' and the next letter, so you all can see it)
Is there a convience function to strip all those things off? Is there some meta-http tag I can set so that the Title of an HTML page will just display 'normal asci text' ???
TIA,
Tom
Find more posts tagged with
Comments
manju166
we have this metta http code inserted in our templates and it works for us.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
manju
J_R
The elements <b><i><strong><em>, and others are not allowed within a title element, following strict HTML To my knowledge, there are no formatting controls over the content that appears in the title bar of the browser window.
tvaughan
Hi manju,
Yeah, if you add the < meta . . .charset="utf-8"> tag, that fixes the problem.
Just a point of interest: the guys running our Covalent Apache web server installation had it configured to overwrite all meta tags with the company's default charset of ISO-8859-1, so if you are experiencing inexplicable charset behaviour, make sure your web server isn't stabbing you in the back.
Tom
amjoe
Yep... to my knowledge you can not have any other HTML tags in the title Tags... I dont think it works....
Thanks
@mjoe
manju166
i didnt think about this until now,
let me check