From 0d1d1fcd5a0d4d63bbcf1e4a4ce354fce6a00746 Mon Sep 17 00:00:00 2001 From: James Alday Date: Sat, 21 May 2016 15:50:41 -0400 Subject: [PATCH] Add 'escape' option to helper function --- src/helpers.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers.php b/src/helpers.php index 684102d..14f0361 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -8,12 +8,13 @@ if (! function_exists('link_to')) { * @param string $title * @param array $attributes * @param bool $secure + * @param bool $escape * * @return string */ - function link_to($url, $title = null, $attributes = [], $secure = null) + function link_to($url, $title = null, $attributes = [], $secure = null, $escape = true) { - return app('html')->link($url, $title, $attributes, $secure); + return app('html')->link($url, $title, $attributes, $secure, $escape); } }