Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Excerpt question

edited January 2011 in Vanilla 2.0 - 2.8
Hi there.

I'd like to show an "excerpt" of the question in the main page, in order to that I need to modify the "helper_functions.php" file (I have a copy in my theme folder so I'm not touching the original file).

function WriteDiscussion($Discussion, &$Sender, &$Session, $Alt) { echo $Discussion->Body; // print the question // code here.... }

I can print the message that is in the "$Discussion->Body" property, however I need to remove all the HTML tags and everything else such a emoticons, code, links and only show plain text.

Is there an special function to do that?

Best regards

Comments

Sign In or Register to comment.