$atricl = ‘Ahead of the much-anticipated <a href=”#” >release</a> <a href=”helloindia.com”>helloindia</a> of her new film Atomic Blonde, Charlize Theron opened up to Howard Stern about one of the hardest times in her life: growing up with an alcoholic father.”;

//spinner artical with anchor tag remove

$atricl = preg_replace(‘#<a.*?>([^>]*)</a>#i’, ‘$1’, $atricl);

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.