diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-03-06 14:01:47 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-03-06 14:01:47 +0100 |
commit | 37fb01baec92a3e7898380923712e0c48b21107a (patch) | |
tree | 2aa8b436935e0edf0a9df3ceacd49c392910296c /system/helpers | |
parent | 4acd41aaa0e70577ab179a3a81d485ac2ab27523 (diff) |
Modified img() in the HTML Helper to remove an unneeded space.
Modified anchor() in the URL helper to convert entities in the title attribute.
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/html_helper.php | 2 | ||||
-rw-r--r-- | system/helpers/url_helper.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php index 0c884502f..4684d8ea8 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php @@ -199,7 +199,7 @@ if (! function_exists('img')) $src = array('src' => $src);
}
- $img = '<img ';
+ $img = '<img';
foreach ($src as $k=>$v)
{
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php index ad71caa45..bd94b390c 100644 --- a/system/helpers/url_helper.php +++ b/system/helpers/url_helper.php @@ -119,7 +119,7 @@ if (! function_exists('anchor')) if ($attributes == '')
{
- $attributes = ' title="'.$title.'"';
+ $attributes = ' title="'.htmlentities($title).'"';
}
else
{
|