HTMLPurifier does some caching by default, but on many production environments the directory is read-only.
The HTMLPurifier_Config is not easily configurable with environment variables, so this patch adds the possibility to overwrite the default config with a custom one before calling sanitize.
The patch doesn't change the behavior of existing code relying on this library :)
Hey,
HTMLPurifier does some caching by default, but on many production environments the directory is read-only. The HTMLPurifier_Config is not easily configurable with environment variables, so this patch adds the possibility to overwrite the default config with a custom one before calling sanitize. The patch doesn't change the behavior of existing code relying on this library :)