Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
hinksta
Worker
Worker



Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sat Feb 18, 2006 10:29 am Reply with quote

is it possible to strip Story Text images from the backend output?
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Feb 18, 2006 11:22 pm Reply with quote

Sure. Look into strip_tags() function.
 
View user's profile Send private message
hinksta







PostPosted: Sun Feb 19, 2006 9:53 am Reply with quote

this looks ok with feed validator
Code:
echo "<description>".htmlspecialchars($rtext = strip_tags($rtext))."</description>\n";


can't figure how to allow some tags like email, links etc - any more tip's
 
Raven







PostPosted: Sun Feb 19, 2006 10:20 am Reply with quote

http://us3.php.net/manual/en/function.strip-tags.php
 
hinksta







PostPosted: Sun Feb 19, 2006 12:21 pm Reply with quote

got it
Code:
echo "<description>".htmlspecialchars($rtext = strip_tags($rtext, '<br>, <a>, <strong>, <em>'))."</description>\n";
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©