Update BaseArrayHelper.php

Recursive method call must have the same parameters as the first call.
Update input-validation.md

You are validating the data, not users.
Fixes #5925: `ArrayHelper::htmlEncode()` does not work properly when the value being encoded is a nested array