[Gravity] Add null-safe value escaping wrapper

Review Request #509 — Created March 31, 2017 and submitted — Latest diff uploaded

pprkut
Lunr
29ec9f9...
lunr

Add null-safe value escaping wrapper.

This allows rewriting code like

$escaped = is_null($value) ? NULL : $this->escaper->value($value);

as

$escaped = $this->escaper->null_or_value($value);

Unit tests

Loading...