add link to text using span html
snippet in html

add link to text using span html

user1320

<span>http://www.domain.com/about</span>

add link to text using span html

user4808

<span id="linkChange">http://domain.com</span>

add link to text using span html

user246

<script type="text/javascript">

    $('.convertableIdentifier').each(function(i, el) {

        // grab the url and the link text
        var url = $(el).html();

        // create a new node with query by decorating a
        // empty a tag
        var newNode = $('<a></a>').attr('href', url).attr('target', '_blank').html(url);

        // replace the current node with our new node
        $(el).replaceWith(newNode);

    });

</script>

add link to text using span html

user1167

<script type="text/javascript">
    $(document).ready(function(){
        $('td span').each(function(){
            $(this).html("<a href='" + $(this).html() + "' />" + 
                $(this).html() + "</a>");
        });
    });
</script>

add link to text using span html

user7156

<a href="http://www.domain.com/about" target="_blank">http://www.domain.com/about</a>

add link to text using span html

user5090

var href = jQuery('#linkChange').html();
var link = "<a href='"+href+"' target='_blank'>"+href+"</a>";

jQuery('#linkChange').replaceWith(link);