CodeIgniter Forums
a tags adding url in parentheses - how to remove? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: a tags adding url in parentheses - how to remove? (/showthread.php?tid=20270)



a tags adding url in parentheses - how to remove? - El Forum - 07-03-2009

[eluser]jmadsen[/eluser]
This seems incredibly simple, and yet I can't find any reference to it anywhere.

When I place anchor tags on my view, such as:

Code:
<?php echo anchor("http://www.mysite.com/", "My site");?>

<a href="http://www.mysite.com/">My Site</a>

it always shows up as:

Quote:"...hello this is My Site (http://www.mysite.com/). Thank you for..."

How do I remove the additional "(http://www.mysite.com/)" part from showing up? This happens with hand coding or using the CI anchor function.

Thanks!


a tags adding url in parentheses - how to remove? - El Forum - 07-03-2009

[eluser]John_Betong[/eluser]
&nbsp;
Have you loaded the helper? $this->load->helper('url'); ?
&nbsp;
Also view the source code in your browser.
&nbsp;
This is what the HTML source looks like in my browser:
Code:
...hello this is <a href="http://www.mysite.com/">My site</a> Thank you for..
&nbsp;

&nbsp;


a tags adding url in parentheses - how to remove? - El Forum - 07-03-2009

[eluser]jmadsen[/eluser]
Ah, apologies...

It is from my Blueprint CSS print.css file. I just started using that css framework more, and hadn't stumbled on that feature yet.

Thanks for those that helped.