Default settings for HTML purifier and how to extend it 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?
Craft won't merge your HTML Purifier config settings with the default ones, but the default ones are pretty simple, so I'd just include them with yours.

{
    "AutoFormat.RemoveEmpty.RemoveNbsp": true,
    "Attr.AllowedFrameTargets": ["_blank"],
    "HTML.AllowedComments": ["pagebreak"]
}