Answers.Body: <p>Go to <strong>Administer menu » Customize Data and Screens » Display Preferences</strong>, click the <strong>Configure CKEditor</strong> button and add <strong>entities</strong> = <strong>false</strong> in the advanced options (see screenshot).<a href="https://i.sstatic.net/QRZmZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/QRZmZ.png" alt="enter image description here" /></a></p>
  <p><strong>Note:</strong> This is the default in CiviCRM 5.61+.</p>
  <p>keywords: quotation marks, double quotes</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-17T11:07:26.243Z
Answers.Text: Yes - you can do it in the Administer>>Customize Data and Screens>>Display Preferences>>Configure CKEditor button: solved the Smarty errors, but revealed something else, but I expect that is my error!
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-04T07:02:35.983Z
Answers.Text: @MickKahn What did you change in the configuration to solve the smarty errors?
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-05T07:54:25.773Z
Answers.Text: Hmm... can't now remember exactly what my issue was or what I did. I may just have been giving details of how you configure ckeditor in CiviCRM 4.7 onwards. It looks as if I only found a partial solution anyway. The only additional config I have is entities (Boolean) (whether to use HTML entities in the editor output) set to "false". Sorry to be vague.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-10T18:43:47.547Z
Answers.Text: This is much more important in Civi 5.43+ because of the use of quotation marks with the `crmDate` filter.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2015-10-22T10:50:15.890Z
Answers.LastActivityDate: 2023-04-27T15:46:27.410Z
Answers.LastEditDate: 2023-04-27T15:46:27.410Z
Answers.UserDisplayName: Thomas
Answers.Body: <p>A much simpler solution is to keep the portion of your smarty code that has quotes into HTML comments, so that the quotes won't be escaped:</p>
  
  <pre><code>&lt;!-- {capture assign=genre}{contact.gender}{/capture}
  {if $genre == "F"}{assign var='salutation' value='Chère'}
  {else}
  {assign var='salutation' value='Cher'}{/if} 
   --&gt; 
  &lt;p&gt;Chers parents, {$salutation} {contact.first_name},&lt;/p&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-19T10:24:52.097Z
Answers.Text: I am sorry: this doesn't work for me.
Answers.UserDisplayName: Pierre François
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-21T09:38:29.590Z
Answers.LastActivityDate: 2019-02-21T09:38:29.590Z
Answers.UserDisplayName: Olivier Schopfer
Answers.Body: <p>For anyone looking for how to do this in Configure CKEditor, the setting you need is /civicrm/admin/ckeditor and set entities = false under advanced options.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-21T18:32:03.147Z
Answers.Text: I have this configuration in CKEditor but with CiviCRM 5.65.2 and 5.67.1 (WordPress) the problem still exists: go to civicrm/admin/messageTemplates, edit a template and add some Smarty code with quote or double quotes. If you switch from and to "source code" you will see "&quot;"
Answers.UserDisplayName: masetto
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-08T17:21:50.533Z
Answers.LastActivityDate: 2019-05-08T17:21:50.533Z
Answers.UserDisplayName: Lars SG
Body: <p>The ckeditor has the habit to escape characters like quotes or umlauts. This breaks the smarty-syntax when generating PDFs or mails.
  Is there a good work-around or solution?</p>
  
Tags: <email><pdf><smarty>
Title: Escaping quotes in ckeditor breaks smarty-syntax
ThreadText: # Escaping quotes in ckeditor breaks smarty-syntax
  
  (Asked by: username_0 on 2015-10-22)
  
  The ckeditor has the habit to escape characters like quotes or umlauts. This breaks the smarty-syntax when generating PDFs or mails.
  Is there a good work-around or solution?
  
  **Tags:** email, pdf, smarty
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2015-10-22. Score: 10
  
  Go to **Administer menu » Customize Data and Screens » Display Preferences**, click the **Configure CKEditor** button and add **entities** = **false** in the advanced options (see screenshot).[![enter image description here](https://i.sstatic.net/QRZmZ.png)](https://i.sstatic.net/QRZmZ.png)
  
  **Note:** This is the default in CiviCRM 5.61+.
  
  keywords: quotation marks, double quotes
  
  > **Comments:**
  > **username_1**: Yes - you can do it in the Administer>>Customize Data and Screens>>Display Preferences>>Configure CKEditor button: solved the Smarty errors, but revealed something else, but I expect that is my error!  
  > **username_2**: @MickKahn What did you change in the configuration to solve the smarty errors?  
  > **username_1**: Hmm... can't now remember exactly what my issue was or what I did. I may just have been giving details of how you configure ckeditor in CiviCRM 4.7 onwards. It looks as if I only found a partial solution anyway. The only additional config I have is entities (Boolean) (whether to use HTML entities in the editor output) set to "false". Sorry to be vague.  
  > **username_3**: This is much more important in Civi 5.43+ because of the use of quotation marks with the `crmDate` filter.  
  
  ---
  
  ### Answer by username_4 on 2019-02-21. Score: 2
  
  A much simpler solution is to keep the portion of your smarty code that has quotes into HTML comments, so that the quotes won't be escaped:
   
  Chers parents, {$salutation} {contact.first_name},
  
  > **Comments:**
  > **username_5**: I am sorry: this doesn't work for me.  
  
  ---
  
  ### Answer by username_6 on 2019-05-08. Score: 1
  
  For anyone looking for how to do this in Configure CKEditor, the setting you need is /civicrm/admin/ckeditor and set entities = false under advanced options.
  
  > **Comments:**
  > **username_7**: I have this configuration in CKEditor but with CiviCRM 5.65.2 and 5.67.1 (WordPress) the problem still exists: go to civicrm/admin/messageTemplates, edit a template and add some Smarty code with quote or double quotes. If you switch from and to "source code" you will see "&quot;"  
  
  ---
  
  