Friday, Apr 7, 2017
Origin is a stunning grid-based theme that tells a story through imagery. The theme creates a truly engaging experience by saturating the screen with your beautiful photos. The theme is also responsive, meaning it will look and work great on mobile devices as well. Click Here For More Details
Make a HTML file and define markup and script To Convert URL into HTML Links
We have to make a HTML file and named it url.html
in This step we create a textarea where user will write some text with links and after that when the user clicks on convert button we call convert(); function.In this function we write two regular expressions to detect link with in a text.You may also like extract url data like facebook using PHP and ajax.
First regular expression detects whether the link starts from http,https,ftp,file and if yes then it convert the text to Clickable HTML link
Second regular expression is used to detect whether the link starts from www and if yes then it convert the text to Clickable HTML link and insert the text into paragraph.