How can I strip HTML from the output on a search/results page generated with iRite?
I have a new site that uses the iRite Editor for content management behind the scenes. On all of the site pages, the output is perfect. However, when I run an internal search on the web site content and the results page shows up, a bunch of the HTML characters are also showing up in the results list. I believe I know why, but I don't know how to fix it.
I want the page title and only the first 50 characters of the page content field to show up in the results list. This is what I have for my code:
<?php echo $row_getData['pageTitle']; ?>
<?php echo substr($row_getData['pageContent'],1,50); ?>
It's the page content field that is getting garbled with the HTML characters, and I'm sure it's because of how I'm outputting it. Any ideas on how I can fix this?