Sanitize post markup and provide xss protection with htmLawed
As of April 2026, The Law is a WordPress htmlawed plugin with 10 active installations and a 0/5 rating0. It has been downloaded 1.3K+ times in total. Requires WordPress 3.0.1+ and PHP false+. Available on WordPress.org since 2013. Last updated 12 years ago — may have compatibility concerns.
HTMLawed is an html sanitizer and validator by PHP Labware, dual licenced with LGPL3 and GPL2+.
This plugin will run HTMLawed (current version 1.1.16) as a filter on post and title content. Using
the default settings embed tags, script tags, inline stylesheets and iframes will be removed from the html.
Refer to the htmlawed documentation for config options for htmlawed. The .htmlawedconfig file
included with the plugin follows the .ini file syntax and by default strips content for xss-unsafe
elements. This file will not show up in the wordpress plugin editor.
| WordPress | 3.0.1+ requiredTested up to 3.6.1 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.