Trims and removes spans from inside of code.