Body: <p><strong>CiviCRM 5.14.0</strong></p>
  
  <p>This is a new site and I am testing inserting action tokens in emails. If I use the link symbol in the wysiwyg, it inserts double-quotes around the link but the {aciont.reply} already puts double-quotes so it gets garbled. If find if I edit the source and change it to single-quotes, it will work. However, if I toggle back to HTML and then source again, I see my single-quotes have been replaced by double-quotes.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;p&gt;Hey {contact.first_name},&lt;/p&gt;
  
  &lt;p&gt;Thank you for volunteering.&amp;nbsp;&lt;/p&gt;
  
  &lt;p&gt;&lt;strong&gt;This works&lt;/strong&gt;: Please reply to this email by sending mail to &lt;a href="{action.reply}"&gt;The System Administrator&lt;/a&gt;&lt;/p&gt;
  
  &lt;p&gt;&lt;strong&gt;This doesn&amp;#39;t work:&amp;nbsp;&lt;/strong&gt;Please reply to this email by sending email to &lt;a href="{action.reply}"&gt;The System Administrator&lt;/a&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Now, the line that says "This works" actually does work. If the recipient clicks on the link, their mail client pops up with reply filled in with the System Administrator's address. </p>
  
  <p>The line that says "This doesn't work" looks exactly the same to me as the working line but it gets garbled somewhere along the way.</p>
  
  <p>The email as received looks like this:</p>
  
  <pre><code>Sample Header for HTML formatted content.
  
  Hey Clem,
  
  Thank you for volunteering. 
  
  This works: Please reply to this email by sending mail to The System Administrator
  
  This doesn't work: Please reply to this email by sending email to "&gt;The System Administrator
  Sample Footer for HTML formatted content
  Unsubscribe
  PO Box 540
  San Miguel, CA 93451-0540
  United States
  </code></pre>
  
  <p>Notice the right caret >. This is what I mean about getting garbled. I have no idea where that is coming from. In the source both lines look the same to me.</p>
  
  <p>If I can't figure this out, how could an end user possibly figure it out?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-20T06:58:18.433Z
Comments.Text: I just copied and pasted your message in a new mail as a source in the wysiwyg editor and everything seems to be fine in my installation. Are you sure you haven't made any mistake in the html?
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-21T01:54:19.837Z
Comments.Text: The HTML is just as it is created by CiviCRM in Chrome. The only way I can get it to work is to place single quotes around the token
Comments.UserDisplayName: Vietyank
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-21T02:43:19.543Z
Comments.Text: I've also tried this in Firefox. No difference
Comments.UserDisplayName: Vietyank
Tags: <civimail><tokens><wysiwyg>
Title: Problems inserting action tokens with default wysiwyg HTML editor
ThreadText: # Problems inserting action tokens with default wysiwyg HTML editor
  
  (Asked by: username_0 on 2019-06-20)
  
  CiviCRM 5.14.0
  This is a new site and I am testing inserting action tokens in emails. If I use the link symbol in the wysiwyg, it inserts double-quotes around the link but the {aciont.reply} already puts double-quotes so it gets garbled. If find if I edit the source and change it to single-quotes, it will work. However, if I toggle back to HTML and then source again, I see my single-quotes have been replaced by double-quotes.
  For example:
  Hey {contact.first_name},
  
  Thank you for volunteering. 
  
  This works: Please reply to this email by sending mail to The System Administrator
  
  This doesn't work: Please reply to this email by sending email to The System Administrator
  
  Now, the line that says "This works" actually does work. If the recipient clicks on the link, their mail client pops up with reply filled in with the System Administrator's address. 
  The line that says "This doesn't work" looks exactly the same to me as the working line but it gets garbled somewhere along the way.
  The email as received looks like this:
  Sample Header for HTML formatted content.
  
  Hey Clem,
  
  Thank you for volunteering. 
  
  This works: Please reply to this email by sending mail to The System Administrator
  
  This doesn't work: Please reply to this email by sending email to ">The System Administrator
  Sample Footer for HTML formatted content
  Unsubscribe
  PO Box 540
  San Miguel, CA 93451-0540
  United States
  
  Notice the right caret >. This is what I mean about getting garbled. I have no idea where that is coming from. In the source both lines look the same to me.
  If I can't figure this out, how could an end user possibly figure it out?
  
  **Tags:** civimail, tokens, wysiwyg
  
  > **Comments:**
  > **username_1**: I just copied and pasted your message in a new mail as a source in the wysiwyg editor and everything seems to be fine in my installation. Are you sure you haven't made any mistake in the html?  
  > **username_0**: The HTML is just as it is created by CiviCRM in Chrome. The only way I can get it to work is to place single quotes around the token  
  > **username_0**: I've also tried this in Firefox. No difference  
  
  ---
  
  ## 0 answers
  
  