Problem w HTML quote entered in Custom Field

  • Posts: 12
  • Thank you received: 0
12 years 7 months ago #45632

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...ents#Distilled_Water ” target="_blank">Distilled Water</a>

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

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


UPDATE: I was manually replacing the " 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: 12 years 7 months ago by lashelleinman. Reason: Found reason why quote was being changed

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

  • Posts: 12
  • Thank you received: 0
12 years 7 months ago #45635

Just to update this - I've just tried pasting the html from WordPad and it's turned my html into the following:

<a href="” www.aliu.biz/index.php/our-ingredients/a...gredients#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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 7 months ago #45646

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.058 seconds
Powered by Kunena Forum