No fence shall be erected which is embedded with or made of pieces of glass, sharpened metal, or sharp or otherwise hazardous material, nor shall any fence be erected which is intended to injure persons or animals. (This prohibition shall not apply to barbed wire fences.)