In Tiny MCE editor on a product page in M2.3, all my double quotes are changed into " after saving. Example:

<a href="{{store direct_url=&quot;contact&quot;}}">

This breaks the links on the page.

Is it possible to avoid this in an easy way e.g. by an admin setting?
Anybody knows of an editor extension that does the job properly?


3 Answers 3


Double quotes inside of double quotes will result in &quot;. The most simple way to fix this, would be replacing the double quotes by single quotes. Such as

<a href="{{store direct_url='contact'}}">

will work

  • It's NOT working. This is what Tiny MCE makes of single quotes: example.com/%E2%80%99contact%E2%80%99 What works however, is when I omit the (single or double) quotes like this: <a href="{{store direct_url=contact}}"> Anybody who is able to explain? Commented Oct 29, 2019 at 12:10
  • still working for my side, when i place it in single quotes. The link links me to example.com/index.php/contact (magento 2.3.2)
    – Ekk4rd
    Commented Oct 29, 2019 at 12:15
  • Any idea why it is only working without any quotes at my side? Commented Oct 29, 2019 at 12:22
  • no idea. i tried different ways to add links in cms pages and i am using a plain magento 2.3.2 installation without additional modules. Except of the sampeldata modules. Maybe something changed to 2.3.3, which version are you using ?
    – Ekk4rd
    Commented Oct 29, 2019 at 12:29
  • I am on 2.3.0. And I am trying to achieve the above in a product page. Not a CMS page. Commented Oct 29, 2019 at 12:55

Elaborate answer including solution:

From Magento docs: https://docs.magento.com/m2/ee/user_guide/marketing/markup-tags-links.html

When used with an anchor tag, the markup tag is placed inside the double quotes of the anchor. To avoid confusion, you can alternate using single-and double quotes for each nested set of quotes.

Example WITH forward slash at the end, so additional references can be appended as a path.

<a href="{{store url='apparel/shoes'}}">Shoe Sale</a>

Example resulting in frontend url WITHOUT trailing slash:

<a href="{{store direct_url='contact'}}">Contact Form</a>

However, It's NOT working in our case.

This is what Tiny MCE makes of single quotes: http://example.com/%E2%80%99contact%E2%80%99

Solution: What works however, is when I omit the (single or double) quotes like this:

<a href="{{store direct_url=contact}}">

Although Magento recommends single quotes, this works just fine.


I have found this solution by myside, with the help of this, atleast CMS changes will not get removed.

WYSIWYG editor inserting &quot; instead of correct " in 2.3.0 when we use any anchor tags

  • 1
    I have checked. Simply not using the wysiwyg editor is not considered to be a solution. Commented Dec 11, 2019 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.