Not sure if you are still suffering at this time. Yes I've told my husband about my harm OCD I've had about him. At first I was really embarrassed, and could hardly tell him, but when I did he didn't seem phased at all. He even told me he had once had similar thoughts about me, freaked him out, but he shrugged it off and moved on (oh how nice that would be!).
My husband is my rock, and the reason I keep holding on when the anxiety/OCD takes me down. It is great to have his comfort and support in times of need.