kplew
February 21, 2009, 4:01pm
1
Folks- My advisory script is not parsing html characters properly and generating output like this:
.brbr$$bra href=http://www.erh.noaa.gov/btv/issuing weather forecast office homepage/a
Seems to be stripping the “<>” from the html tags.
My cache file looks the same way , so it must be something in the parsing.
I’m using the latest version. Any ideas what I’m doing wrong? Thanks for the help.
ktrue
February 21, 2009, 6:31pm
2
Would you mind posting the URL for your website … the link in your profile has a ‘not found’.
Please post a link to the rss-advisory.php script on your website, and I’ll take a look
Best regards,
Ken
kplew
February 21, 2009, 6:46pm
3
Hey Ken,
My website is http://www.plewnet.com/weather
http://www.plewnet.com/weather/rss-advisory.php
and the page in question is weather4.php
I’m calling it this way:
<?php
$includeOnly = true;
$DefaultZone = 'VTZ019';
$doSummary = false;
include_once("rss-advisory.php");
?>
and I am also using rss-top-warning.php in index.php.
Thanks Ken!
ktrue
February 21, 2009, 7:01pm
4
I’d try setting in rss-advisory.php
$doLowerCase = false; // <== change to true to lowercase the advisories (new in 1.05)
It seems that something is ruining the HTML encoded <br> (
) so the lines just run together with no breaks.
Best regards,
Ken
kplew
February 21, 2009, 7:31pm
5
Ken- I modified the script and refreshed the cache, but there wasn’t any change in the output.
I also tried a different zone- just to be sure that it wasn’t something with that.
Any other ideas?
Thanks again.
ktrue
February 21, 2009, 9:35pm
6
There is something strange with your PHP … I tried downloading your copy of the script, and it works fine (lines showing breaks), on my servers.
Something in your PHP installation is replacing the ‘<’ and ‘>’ characters from the data, so all the formatting disappears ?!?
Are you running your own server or do you have a webhoster?
Best regards,
Ken
kplew
February 21, 2009, 10:23pm
7
ktrue
February 21, 2009, 11:52pm
8
Yep, that looks like the issue.
Best regards,
Ken
kplew
February 23, 2009, 2:46pm
9