News Feed Import - Strip HTML?

Qwest

Member
I have a news feed coming in and posting to my forum occasionally and it's working great, except..... the titles include HTML bold tags.

So I need to be able to strip the <b> tags from the titles. How can I do that? Is there a way to do it in templates? A setting I'm missing?
 
That would require a code change. We expect HTML in the content potentially, but we have no concept of it in the title (I don't think it's normally expected but it's possibly ambiguous).
 
Well I could handle some easy str_replace() coding. I just need to know where to start. Any tips?

Right now my titles are all messed up and look like this...

Hey You Look at My <b>Awesome</b> Title!

With the HTML printed like that.
 
That requires an addon. Or you can modify this file directly:

library/XenForo/Model/Feed.php

The "prepareFeedEntry" function operates on the feed content before it is posted. This requires some coding ability.
 
Back
Top Bottom