aura/html
HTML escapers and helpers for any PHP template/view layer, including tag builders and form input helpers. Easy to use via a HelperLocatorFactory; built-in helpers escape values appropriately and you can register custom helpers via the HelperLocator.
This release modifies the testing structure and updates other support files.
This release fixes a bug in Checkbox/Radio helpers by adding a feature. Previously, the helpers used strict checking of values, which was an unintentional holdover from previous versions. They both now have a strict() method, just like the Select helper, that allows you to turn strict checking off and on. The default is "off."
It also includes a fix to the Escaper encoding lists: they were previously using "iso8859-" and now use "iso-8859-" (note the added dash, per the listing at http://php.net/manual/en/mbstring.supported-encodings.php).
Finally, the links, metas, scripts, styles, and title helpers now allow one-off use by passing values directly to the helper invocation. See the updated documentation for these helpers for more information.
This release has SECURITY FIXES. All users are encouraged to upgrade immediately.
Extracted from Aura.View package.
Helper\Title::get() to retrieve the HTML-escaped title string for use in HTML contexts.Helper\Title::getRaw() to retrieve the unescaped title string for use in non-HTML contexts such as og:title meta tags. Reliable only when built with escaped methods (set(), append(), prepend()); unreliable when mixed with raw variants.Helper\Title::__toString() no longer resets the title state after rendering, allowing get(), getRaw(), and further mutations to work correctly regardless of render order.[@method](https://github.com/method) PHPDoc tags to HelperLocator for IDE autocomplete support (fixes #58).checkbox and radio multi-option inputs. Each entry in options may now be either a plain label string (backward-compatible) or an array of ['label' => '...', 'attribs' => [...]]. Per-option attribs are merged on top of shared attribs so they can override global attributes (closes #48). Thank you @rodsouto and @jakejohns for the valuable input.How can I help you explore Laravel packages today?