AnsweredAssumed Answered

How to remove tags from string fetched from Database?

Question asked by Sohan Tirpude on Mar 11, 2015
Hello everyone, I am using SugarCRM 6.5.x CE version. I am fetching text from database using after_save logic hook, which has some HTML tags. So, I want to use that text. But I want to remove those tags first. I am trying everything to remove. Like standard php functions strip_tags, preg_match, preg_replace, etc. But no help. I am attaching a piece code here.

       $oSMS = new SMS_Template();
       $content = $oSMS->template;
       echo strip_tags($content);

Please help me in this.