Jump to content

Page Source Title Shown Wrong


Claudia M

Recommended Posts

I was looking at my page source and noticed the title is showing as follows.  Not really bold, I just highlighted it.  It should read Claudia's Bargains.  What to do?  Thanks in advance!

<!DOCTYPE html>
<html class="no-js" xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head>
      <title>Claudia&#39;s Bargains</title>
      <meta charset="utf-8">

 

Nevermind, I just manually typed in the title in my skin/content/main.php file and is shows as it should.

<!DOCTYPE html>
<html class="no-js" xmlns="http://www.w3.org/1999/xhtml" dir="{$TEXT_DIRECTION}" lang="{$HTML_LANG}">
    <head>
      <title>Claudia's Bargains Collectibles and More Shop</title>

 

Link to comment
Share on other sites

Web browsers do not decode html entities (&#39; and some others) in the title bar of the application's window. I think it is some kind of security measure.

But, as you discovered, you can hard-code whatever you want.

However, a more universal solution is to do this:

<title>{$META_TITLE|unescape:"htmlall"}</title>

On the other hand, my Firefox (v60 on Win7) has the &#39; entity in the <title> tag, but shows the apostrophe in the browser title bar.

YMMV.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...