- Posts: 120
- Thank you received: 1
How to insert ampersand symbol.
14 years 1 month ago #62115
by watashi
How to insert ampersand symbol. was created by watashi
Some product characteristics of my shop contain ampersand symbols (&).
As far as I understand, such symbols must be inserted by using special "escape" syntax, such as & a m p ;
However, after I save the article, & a m p ; is converted back to "&" without the special syntax.
As a result, WWW Validator says a error (see text below).
Is it correct way to keep ampersand in the text as it is without converting it to & amp ;?
If not, how shall I handle it?
TEXT OF THE ERROR
Line 737, Column 20: character "&" is the first character of a delimiter but occurred as data
Briggs & Stratton </span>
This message may appear in several cases:
- You tried to include the "<" character in your page: you should escape it as "<"
- You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
- Another possibility is that you forgot to close quotes in a previous tag.
As far as I understand, such symbols must be inserted by using special "escape" syntax, such as & a m p ;
However, after I save the article, & a m p ; is converted back to "&" without the special syntax.
As a result, WWW Validator says a error (see text below).
Is it correct way to keep ampersand in the text as it is without converting it to & amp ;?
If not, how shall I handle it?
TEXT OF THE ERROR
Line 737, Column 20: character "&" is the first character of a delimiter but occurred as data
Briggs & Stratton </span>
This message may appear in several cases:
- You tried to include the "<" character in your page: you should escape it as "<"
- You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
- Another possibility is that you forgot to close quotes in a previous tag.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #62329
by nicolas
Replied by nicolas on topic Re: How to insert ampersand symbol.
Hi,
When you enter & in the product name, it is saved like that in the database.
When HikaShop then displays the product name, it displays &
Then, your browser converts the & to & as it should when displaying the page. But in the code source of the page, it's & which is there.
So there is no problem on that end.
In our tests, the & is kept and the w3c warning message does not appear once you enter & in the product name.
When you enter & in the product name, it is saved like that in the database.
When HikaShop then displays the product name, it displays &
Then, your browser converts the & to & as it should when displaying the page. But in the code source of the page, it's & which is there.
So there is no problem on that end.
In our tests, the & is kept and the w3c warning message does not appear once you enter & in the product name.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #62457
by watashi
Replied by watashi on topic Re: How to insert ampersand symbol.
Nicolas, noted, thanks.
It seems the reason is because I use RokPad by RocketTheme instead of common TinyMCE.
It seems the reason is because I use RokPad by RocketTheme instead of common TinyMCE.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #62540
by nicolas
Replied by nicolas on topic Re: How to insert ampersand symbol.
Thank you for your feedback.
Please Log in or Create an account to join the conversation.
Time to create page: 0.176 seconds