|Status:||closed - fixed|
Whilst cleaning up layout code for Kamp Pro 2 (https://github.com/dbernar1/kampPro2), I decided to validate the code. Besides my own errors, it said that practically all links were causing errors, because the ampersands in them weren't escaped like `&`.
My proposed solution is to borrow the HtmlHelper from CakePHP, and instead of allowing an associative array for a link, allow the paramters for `get_url` (in an array) to be allowed
`$html->link([string $title], mixed $target, [array $options])`;
Either an array, i.e.
`array('access', 'forgot_password')`, which will be internally translated to `get_url('access', 'forgot_password')`;
or a string
used for the attributes of the created a-element, i.e.
`$Html->link('title', '#', array('id'=> 'foo', 'class' => 'bar'));` becomes `title`