Some characters are shown as HTML entities
bavarian - March 9, 2009 - 13:35
| Project: | Integrated Metatags |
| Version: | 6.x-1.0-beta7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I am trying to manual/static Metatag entry from within the Integrated Metatags-page (admin/content/int_meta) but not in English but in Swedish. Which means including characters like ä, å or ö. The problem is that these special characters don't show up in the html-code in the metatag as I am expecting them to, but instead come out as ä and å and ö which is not desired.
Is this a bug or is there something wrong going on my site?

#1
How do you expect them to show up in the HTML code?
#2
Same problem here.
for example: 'link popularity'
comes out like:
'link popularity'how about not converting to html characters :)
#3
The OP was not clear because the text contained HTML entities, which were rendered to the equivalent characters. I edited the posts to show the HTML entities as plain text.
To show a HTML entity in a issue report without it is converted, remember to insert it as <code>&</code>aring;, or <code>&</code>#039;.
#4
At the very least, I have to escape the double-quote. I'll have to look myself, but can you find any documentation that supports not encoding such values?
#5
On the W3C website, the value passed for the content attribute is reported to be CDATA (http://www.w3.org/TR/html4/struct/global.html#edef-META), which means that:
I would think that is exactly the opposite of what suggested: the browser should replace the character entities before to use the meta tags.
#6
@KiamLaLuno: so, to just make sure I'm reading things right, the character entities I'm doing for ", ', etc. should be totally valid. Correct?
For those that noticed this being a problem, how are you using the tags? Do you have an example of how this is actually breaking something (e.g. Google search results)?
#7
@fractile81: You are understanding correctly.
It would be interesting to know how the meta tags set with the module are used. Any browser should be able to correctly show the meta tags, even if they contain entities.
To notice that the link I reported refers to HTML 4.0, and it is still valid for XHTML too. I would expect that any browser is able to correctly handle the meta tags, by now.