Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jukka-Pekka Keisala 90 posts 226 karma points
    Oct 17, 2010 @ 17:37
    Jukka-Pekka Keisala
    0

    Convert URL to links

    What is the best way in Umbraco to convert URL's in string to links when using XSLT?

    Example:

    Lorem ipsum http://www.example.com sit dolerm

    =>

    Lorem ipsum <a href="http://www.example.com">http://www.example.com</a>; sit dolerm

  • Magnus Eriksson 122 posts 362 karma points
    Oct 17, 2010 @ 17:43
    Magnus Eriksson
    2

    Maybe this could be of help?:
    http://www.stylusstudio.com/xsllist/200305/post81170.html

    Regards,
    Magnus

  • Rik Helsen 670 posts 873 karma points
    Oct 19, 2010 @ 17:00
    Rik Helsen
    0

    This'll be harder than it sounds, what is a url anyway?

    http://something.com
    http://something.something.something.aero/something/something.orb
    http://something.com?elkrj=zerlkjzer&lskdfj=zlekrjze&slfkjsfsdf sdf?รง"

    regex matching all this won't be easy, mind explaining why you want to do this? and why the links aren't entered as hyperlinks in the content editor?

     

     

     

     

  • Jukka-Pekka Keisala 90 posts 226 karma points
    Oct 19, 2010 @ 17:31
    Jukka-Pekka Keisala
    0

    Thank's Magnus. I will try Jeni Tennison's solution. 

    @Rik, I am parsing RSS feed where links are plain text. They all start with http so the link that Magnus provided should solve it.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies