搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

The symbols on my site (ex: &trade), simple html coding, no longer translate as a symbol but as the literal text in 4.0, what can I do?

  • 6 回覆
  • 7 有這個問題
  • 9 次檢視
  • 最近回覆由 globacide

more options

I updated to 4.0 today and now the symbols on my site appear as literal text. For example &trade in my html to translate onto my site as the TM symbol. It worked in the previous version and still works on other browsers.

I updated to 4.0 today and now the symbols on my site appear as literal text. For example &trade in my html to translate onto my site as the TM symbol. It worked in the previous version and still works on other browsers.

被選擇的解決方法

Make sure that you add a trailing ";" : ™ -> ™

從原來的回覆中察看解決方案 👍 0

所有回覆 (6)

more options

Take a look at this website. It has a lot of HTML symbols and entities. Do they display wrong on your end? HTML character symbols

They display ok for me on a mac in Firefox 4. What about you?

由 bootstrapcreative 於 修改

more options

選擇的解決方法

Make sure that you add a trailing ";" : ™ -> ™

more options

Yup, they all work :)

more options

Apparently I forgot the ";" but it worked without it on my previous version of Firefox as well as in Safari etc. Oh well. Thank you so much for your help, I appreciate it!

more options

Hello,

Not related to the "& trade ;" symbol, but otherwise a related bug:

The following string: "& amp ; sect" gets translated to the § ("& sect ;") symbol.

And yes, I have triple-checked everything, and I'm sure this is a bug. Note the string is inside a link in a href attribute of an "a" tag.

Can anyone reproduce and let me know if it's really a bug? If so, we should report it.

Thanks!

由 globacide 於 修改

more options

Sorry, the previous string got stripped in my previous post. It is "& amp ; sect" (without spaces).

Thanks.