From 8788d4b5f597465daaabf46455cd086b6b7deb58 Mon Sep 17 00:00:00 2001
From: Derek Allard
$data = array(
'name' => 'John Doe',
- 'email' => 'john@some-site.com',
- 'url' => 'http://www.some-site.com'
+ 'email' => 'john@example.com',
+ 'url' => 'http://www.example.com'
);
echo form_hidden($data);
// Would produce:
<input type="hidden" name="name" value="John Doe" />
-<input type="hidden" name="email" value="john@some-site.com" />
-<input type="hidden" name="url" value="http://www.some-site.com" />
+<input type="hidden" name="email" value="john@example.com" />The above would generate 30 newlines.
Converts double slashes in a string to a single slash, except those found in http://. Example:
-$string = "http://www.some-site.com//index.php";
-echo reduce_double_slashes($string); // results in "http://www.some-site.com/index.php"
+$string = "http://www.example.com//index.php";
+echo reduce_double_slashes($string); // results in "http://www.example.com/index.php"
Removes any leading/trailing slashes from a string. Example:
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html
index 0f6075585..08e6f7d0c 100644
--- a/user_guide/helpers/url_helper.html
+++ b/user_guide/helpers/url_helper.html
@@ -224,7 +224,7 @@ $url_title = url_title($title, 'underscore');
This function will add http:// in the event it is missing from a URL. Pass the URL string to the function like this:
-$url = "www.some-site.com";
+$url = "www.example.com";
$url = prep_url($url);
--
cgit v1.2.3-24-g4f1b