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
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).
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
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
0
Comments
Vanilla Forums COO [GitHub, Twitter, About.me]