vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Filtering HTML from some RSS feeds (https://vborg.vbsupport.ru/showthread.php?t=104004)

TheMusicMan 12-29-2005 10:16 PM

Filtering HTML from some RSS feeds
 
Some RSS feeds I notice include html tags within the post information such as <p>, <img> and <a href> etc. Now, if as is the case on nearly every vB forum I frequent, html in posts is not permitted, is there any way I can filter out these tags from the RSS feed so as I can still post them?

When they are posted now they look awful due to the page not allowing the html to be rendered (correctly so), but it would be good if I could still use these feeds as the information within them is extremely relevant for my forums.

Thanks

Marco van Herwaarden 12-30-2005 04:35 AM

PHP Code:

$nohtml strip_tags($htmlstring); 


TheMusicMan 12-30-2005 09:27 PM

Thanks Marco... but where should I include that php code?

Marco van Herwaarden 12-31-2005 05:31 AM

Wherever in your script you are handling reading the RSS and inserting it into a post.

TheMusicMan 01-01-2006 10:26 AM

Quote:

Originally Posted by MarcoH64
Wherever in your script you are handling reading the RSS and inserting it into a post.

I'll have a look and try to figure it out... I am using the RSS feeds plug in from here.


All times are GMT. The time now is 10:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01044 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete