Hello. Every time I copy an ampersand (“&”)from a product description and paste it into a custom product metafield, the ampersand comes through as “&”. This is annoying and requires me to look carefully to catch every time I have an ampersand in something that I am copying into a custom product metafield.
Is it the round brackets that don’t come through? This is kind of confusing. Please send screenshots or examples or what you are trying to achieve.
Best
You should use </> button or pair of back-ticks ` to paste codes which can be processed by forum engine or browser.
I guess your & is converted to & ?
Unfortunately, there is no universal solution for this as ampersand is used to represent HTML symbols and therefore the symbol is often auto-replaced by these.
Then extra escaping can produce &amp; and so on…
HTML symbols can be tricky to manage, say, if you write we accept dollars€ you may end up with “we accept dollars€”
Or You can paste© will produce “You can paste©”.
Vice-versa we accept dollars & euro instead of “we accept dollars & euro” will become we accept dollars &amp; euro with unwanted over-escaping. ![]()
thank you @tim_tairli and sorry @Shadab_dev for the confusion, I didn’t notice the problem didn’t come through in my message. The issue was that each time I copied an ampersand by itself from the description, it would come through into the custom field as &so I have to delete the amp; for every instance that has an ampersand. Understandable there isn’t a universal solution, just seems HTML doesn’t need to come through if you’re copying the data from the text editor in the Description field. Cheers!