XSS filter is a GPL Cart module that intended to protect site visitors from XSS vulnerabilities. Essentially it filters out all dangerous tags and entities from HTML passed into $this->filter()
function in theme templates. Administrators can decide which tags should be kept in the filtered text.
Installation
- Download and extract to
system/modules
manually or using composercomposer require gplcart/xss
. IMPORTANT: If you downloaded the module manually, be sure that the name of extracted module folder doesn't contain a branch/version suffix, e.g-master
. Rename if needed. - Go to
admin/module/list
end enable the module - Adjust list of allowed tags at
admin/module/settings/xss