Discussion in 'Site Problems & Feedback' started by Glaanieboy, Mar 24, 2004.
See for yourself: http://www.osnn.net/modules.php?modname=backend&action=rdf
I have tracked the problem down to http://www.osnn.net/comments.php?shownews=10151. As you can see, it gives an error at "<li>Fixed some problems with DVD-RAM devices on Windows NT/2000...</note>", because the RDF program it obviously set to break the <note> thingy at a certain point, BUT that means that the final </li> tag for the DVD-RAM bit is missing, thus giving the error. Is it possible to remove the breaking?
It is 'fixed' now, the newspost in question has been bumped down enough not to show up anymore in the RDF backend. Still, when a post with <li> thingies shows up and it breaks down in the middle of a <li>, then the problem will return.
Ah, that could prove to be quite troublesome. EP Will need to look into this when he gets back.
I'm sure that the <notes> tag is used for Kipfolio so it can't be killed. Although just stripping tags from getting in there should be a possibility.
I was thinking, that there should be no character limit in the <notes></notes> tags, that would eliminate the errors I got. Then you could put character limits in the application requesting the RDF feed. (I hope I make sense here)
No matter how much you limit it, somewhere down the line a tag will likely slip in. Just removing the tags should sort it out.
I have been trying to modify the script to remove the tags, I will try and sort it when I get home, I would really like you php gurus help on this one
Oh, what is the notes line actually used for? removing the tags may screw things up dependant on its use..
http://uk2.php.net/htmlspecialchars <-- maybe
I was going to suggest that, but thought that when parsed (this is why I asked where it's used.) you'd get the <>'s rather than the actual tags..
You mean <notes></notes>?, that is where the actual news post is.
Yeah, but you can change that back with html_entity_decode().
Yeah I mean ideally I would like to remove all vbcode and all html tags.
I mean't to do it a long time ago actually
I'll post the relevent code and have a look myself when I get home.
Ok, various tags have been stripped out.
Chances are we missed a few, but I will deal with those as they appear!