Officially you can not avail the tax rebate if you are planning to sell your property in the next 5 years. But technically, you will enjoy the rebate for the 1st and 2nd year even if yuo sell in the third year as nobody will check these things. :)
if you want to escape , you can always escape. :):)