The htmLawed module uses the htmLawed PHP library to restrict and purify HTML for security and compliance with web standards and admin policy.