anal fissure

Has anyone had an anal fissure before?
I just passed a stool and it was quiet painful and there was a lot of bright red blood around the stool and a few drop in the bowl and on the toilet paper when I wiped. 
After a few more wipes the blood had almost stopped.
Just wondering how to get rid of this?