





10:02 pm

I am trying to use the PHP feature to stirp out all <IMG> and <A> tags like so:
Login to see the code
But it ignores the code and just inserts the complete content with all tags intact. Is strip_tags not allowed for some reason?
UPDATE:
The more I play around with it, the more broken this seems. Even doing something basic like this doesn't do anything (the post content remains unchanged):
Login to see the code
Perhaps my feed is screwed up somehow? This is it:Login to see this link
Also note, that these don't do anything either, so it's impossible to set a blank excerpt.
Login to see the code
2:57 am

So I figured it out!
Seems that $post['post_content'] wasn't even set yet. It was empty this whole time.
So I just did this:
Login to see the code
It's pretty confusing what the plugin is assigning to which variable. I guessed that $post['post_content'] was being set with the contents of the <item> (or section tag), but in fact $post['post_excerpt'] was getting given that.
Word of advice to anyone using this PHP formatter: start with those first 5 lines of code I have above!
The "<content>" element ($post['post_content']) is not required by Login to see this link, so many feeds have only "<description>" ($post['post_excerpt']).
Thus your code must check both variables and if $post['post_content'] is empty, the $post['post_excerpt'] variable must be used instead.
Your code above does it right excepting this line:
Login to see the code
If you want make the excerpt empty, you should do it this way:
Login to see the code
Otherwise just leave it as is.
Most Users Ever Online: 541
Currently Online:
21 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 86
harboot: 73
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 54
tormodg: 51
Member Stats:
Guest Posters: 337
Members: 3030
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1711
Posts: 8827
Newest Members:
timetolive.naver, centrozone.mailfence, flavvourr, sara.chugwell.radiologist, gaurav.s.solanki1, lastchaosmaster94Administrators: CyberSEO: 4155