Live Demo
RT @gruntjs: #Sass code quality @Guardian, powered by #gruntjs: http://t.co/urYZOC5fpc #Javascript
Google reCAPTCHA ! http://www.google.com/recaptcha/intro/index.html … #php #web #www #html
TweakStyle is now on a new release cycle - http://blog.tweakstyle.com/2014/11/new-release-cycle/
Great news! Our Gear Store now has gift cards -- a great idea for friends & family who #lovetheweb! https://gear.mozilla.org/products/gift-card
Parameters
Parameters | Type | default | description |
---|---|---|---|
urlClass | String | tweet_link | css Class used for url in the tweet |
userClass | String | tweet_user | css Class used for @user profil url in the tweet |
hashtagClass | String | hashtag | css Class used for hashtags url in the tweet |
target | HTML attribute for anchor tags | _blank | target used for all <a> generated |
searchWithHashtags | Boolean | true | generate hashtag link, if true : "twitter.com/hashtag/", if false : "twitter.com/search?q=" |
ParseUsers | Boolean | true | will parse @users if is set to true |
parseUrls | Boolean | true | will parse URLS if is set to true |
parseHashtags | Boolean | true | will parse hashtags if is set to true |
Getting started
//basic usage
tweetParser('.tweet');
//With Default parameters
tweetParser('.tweet', {
urlClass : "tweet_link", //this is default
userClass : "tweet_user", //this is default
hashtagClass : "hashtag", //this is default
target : "_blank", //this is default
searchWithHashtags : true //this is default
parseUsers : true,
parseHashtags : true,
parseUrls : true
});
// Note that '.tweet' is your own CSS selector