Input

No HTML

Rule `no_html`: Rejects HTML/script markup in input.

Usage

Use for plain text fields to reduce markup injection.

$schema = \Lemonade\Framework\Validation\ValidationSchema::create()
    ->field('field', 'Field')
        ->noHtml()
        ->end();

$result = $validator->validate($payload, $schema);

Stable rule name

no_html for translations, registry lookup and per-rule messages.

Group

Security / Content