Skip to main content

Problem w HTML quote entered in Custom Field

More
14 years 5 months ago - 14 years 5 months ago #45632 by lashelleinman
Hi,

I have a custom field called 'Ingredients' in which I put my products' ingredients into. I am trying to have each ingredient link to an anchor within another page AND have it open in a new window. The problem I'm having is that one of my quotes is being changed by the system into " and breaking the html.

For example, I enter:
<a href=" www.aliu.biz/index.php/our-ingredients/a...nts#Distilled_Water” target="_blank">Distilled Water

And the system changes it to:
<a href=" www.aliu.biz/index.php/our-ingredients/a...nts#Distilled_Water” target="_blank">Distilled Water

Is this a system bug or am I doing something wrong?

UPDATE: I was manually replacing the &quot; with " after the system changed my html after pasting & saving. I just realised that the second " on my url wasn't being recognised as a second quote; once I erased it and retyped it then I was able to correct the quotes around my target and it saved correctly. However, this doesn't fix the problem of being unable to paste my html from WordPad (plain text) into the text area without the system changing it (as detailed in the next post).
Last edit: 14 years 5 months ago by lashelleinman. Reason: Found reason why quote was being changed

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #45635 by lashelleinman
Just to update this - I've just tried pasting the html from WordPad and it's turned my html into the following:

<a href="”http://www.aliu.biz/index.php/our-ingredients/about-our-ingredients#Jojoba_Oil” target=_blank">

It puts an extra quote at the beginning of the http and removes a quote from the beginning of my _blank"

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #45646 by nicolas
Hi,

Try to use simple quotes instead of double quotes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.217 seconds
Powered by Kunena Forum