I tend to do three things when it comes to getting wood ready for tanks.
First - I pour boiling water over the entire piece of wood, including the nooks and crannies, use full kettle of water. This helps to kill any potential nasties on the wood.
Second - I use a wire brush, used solely for wood, nothing else, and scrub over the entire wood, taking off any loose bits and dirt. Then I pour another kettle full of hot water over the entire wood again just to clean it up a bit and doubly making sure potential nasties are killed off.
Third - I put the wood in either a small spare tank or a plastic container with a simple filter or pump to push the water around. And leave it there for at least 2 - 3 weeks, sometimes more especially if the wood is floating and needds to be waterlogged before adding to tank. I sometimes put in a large weight, usually a small clean bottle filled with sand and put on top of the wood to ensure entire piece is submerged.
During the time the soaking wood is in the tank / container you may see some white tufts of soft fungi / algae type of growth. Simply take the wood out and wirebrush this off and rinse and return to tank, repeat as neccessary. This stuff wont actually do much harm in the tank or towards livestock at all, just a bit unsightly is all and will naturally go away after a period of time but i find green algae will tend to grow in these areas hence I scrub off the white stuff to help prevent this.
I never boil wood, simply because its kind of a fuitless excercise imho and will degrade the wood faster.