Strip RSS images
I'm wondering if there is any plan (and suggesting it might be a good idea) to include an option in the ticker creation/edit to have the ticker not display images?
I have several RSS Feeds that include img tags in their CDATA (most notably http://
I have created a PHP page to parse out img tags (see below) but would like it if something like it is included in the xibo code so the ticker can do this natively.
alternatly the code could be modified to add/modify the hieght and width to scale just the the images
-=-=-=- CODE -=-=-=-
<?php
// File: imglessrss.php
// Notes: This PHP file is intended to strip image tags from the CDATA of RSS items.
// Usage: http://<path>/
$lines = file($_
foreach ($lines as $line_num => $line) {
if (strpos ($line,"<img") === false) {
echo $line;
} else {
echo preg_replace(
}
}
?>
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Xibo Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Stephen Roddick for more information if necessary.