SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    May 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Complex HTML problem, or easy one?

    Hi all

    I am building a web app with a friend (using twitter boostrap as a base). As part of the project we want users to be able to submit a url, so others can click on the url and it will be an active link. We want to avoid users having to put their own html code into the interface.

    so www.hat.com

    become <a href=www.hat.com>www.hat.com</a>

    As an added featured, it would be really cool to be able to automatically block urls with certain keywords, or those that are part of a black list we create.

    I am currently using the bootstrap form element as the input field, it looks really nice but I accept this may need to change. I understand I may need to use JS or perhaps a serverside function to do this. Please help point me in the right direction.

    Ty
    Last edited by ralph.m; Jul 18, 2012 at 19:53.
    Get a little bit extra out of life with www.stakemyrep.com
    and stay motivated the easy way!

  2. #2
    SitePoint Addict
    Join Date
    May 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think a regular expression should handle it
    Get a little bit extra out of life with www.stakemyrep.com
    and stay motivated the easy way!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •