substr(niphell[post_content],0,?)

olan kısmı

substr(strip_tags(niphell[post_content]),0,?)

diye değiştirirsen sorun çözülür