Text editor changing dc shortcodes upon save

I’m trying to accomplish this:
field=“company_url”

{{dc:acf:post_field field="professional_title"}}, <a href="{{dc:acf:post_field field="company_url" target="_blank" rel="noopener" class="hoverlink"><strong>{{dc:acf:post_field field="company"}}</strong></a>

but every time that I save/close out the text box, it converts it to this:
field=" company_url=""

{{dc:acf:post_field field="professional_title"}}, <a href="{{dc:acf:post_field field=" company_url="" target="_blank" rel="noopener" class="hoverlink"><strong>{{dc:acf:post_field field="company"}}</strong></a>

needless to say, my links aren’t working as desired. any thoughts?

Hello @splaquet,

Thanks for writing to us.

In order to help you with your concerns, we need to check your settings. I would request please share the admin login details meanwhile, I would suggest you troubleshoot a few of the common issues before we investigate your settings. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks

I was actually able to resolve it on my own. I didn’t realize it also stripped out other characters, like the }}.

I typically use the RAW editor, but I accidentally clicked on HTML and noticed the coloring on how it was breaking up. I fixed it by replacing the quotes on field=“company_url” with ’

OLD one w/ issues

Hello @splaquet,

Always keep in mind that you cannot put the same quote inside a quote when dealing with codes (HTML, PHP, JS, etc.)

:x: Incorrect:

<a href="{{dc:acf:post_field field="company_url"}}" target="_blank">some text</a>

:white_check_mark: Correct

<a href="{{dc:acf:post_field field='company_url'}}" target="_blank">some text</a> 

OR 

<a href='{{dc:acf:post_field field="company_url"}}' target='_blank'>some text</a>

If you are using double quotes, nest a single quote and vice versa.

Hope this helps.