Answers.Body: <p>Craft won't merge your HTML Purifier config settings with the default ones, but the default ones are <a href="https://github.com/craftcms/cms/blob/master-v2/src/fieldtypes/RichTextFieldType.php#L554-L560" rel="nofollow noreferrer">pretty simple</a>, so I'd just include them with yours.</p>
  
  <pre><code>{
      "AutoFormat.RemoveEmpty.RemoveNbsp": true,
      "Attr.AllowedFrameTargets": ["_blank"],
      "HTML.AllowedComments": ["pagebreak"]
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-01T06:49:20.867Z
Answers.Text: Would love to see this in the documentation somewhere. A search for Purifier doesn't return anyhing.
Answers.UserDisplayName: Jan_dh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-16T19:13:49.937Z
Answers.LastActivityDate: 2018-03-16T19:13:49.937Z
Answers.UserDisplayName: Brad Bell
Body: <p>Is there a default.json file for the html purifier settings in Craft? Now we can configure this I want to extend to include the stripping on non-breaking spaces. However, I don't want to just extend my requirements and not replace the default.</p>
  
  <p>As I understand I would create a new json file in <code>craft/config/htmlpurifier</code> and this file would contain the following;</p>
  
  <pre><code>{
    "AutoFormat.RemoveEmpty.RemoveNbsp": true,
  }
  </code></pre>
  
  <p>Is this all that is required?</p>
  
Tags: <config>
Title: Default settings for HTML purifier and how to extend it
ThreadText: # Default settings for HTML purifier and how to extend it
  
  (Asked by: username_0 on 2018-03-16)
  
  Is there a default.json file for the html purifier settings in Craft? Now we can configure this I want to extend to include the stripping on non-breaking spaces. However, I don't want to just extend my requirements and not replace the default.
  
  As I understand I would create a new json file in `craft/config/htmlpurifier` and this file would contain the following;
  
  ```
  {
    "AutoFormat.RemoveEmpty.RemoveNbsp": true,
  }
  
  ```
  
  Is this all that is required?
  
  **Tags:** config
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-03-16. Score: 2
  
  Craft won't merge your HTML Purifier config settings with the default ones, but the default ones are [pretty simple](https://github.com/craftcms/cms/blob/master-v2/src/fieldtypes/RichTextFieldType.php#L554-L560), so I'd just include them with yours.
  
  ```
  {
      "AutoFormat.RemoveEmpty.RemoveNbsp": true,
      "Attr.AllowedFrameTargets": ["_blank"],
      "HTML.AllowedComments": ["pagebreak"]
  }
  
  ```
  
  > **Comments:**
  > **username_2**: Would love to see this in the documentation somewhere. A search for Purifier doesn't return anyhing.  
  
  ---
  
  