-
☆ A M B ☆
- 326 Posts
I have a site that’s pulling in an RSS feed using FeedX. The ampersands in the feed’s links are not properly encoded (they just use & instead of &), which is screwing up my validation. Unfortunately, I don’t have access to edit the feed itself and fix this, so I’m wondering if there’s a way (probably with a plug-in?) that will let me properly encode things on the fly as the page is being rendered.
I have seen a plug-in in the repository called &xhtml, but I can’t get it to work properly, and the documentation is pretty sparse. If this is the correct plug-in, could someone please walk me through setting it up and getting it to work?
Thanks!
-
☆ A M B ☆
- 326 Posts
Oh wait -- I somehow got &xhtml working (I think I had the wrong event checked before). Not sure why your other suggestion didn’t work, but I appreciate the help!
I copied and pasted the code, and checked ’OnWebPagePrerender’. Unfortunately it is having no effect on my ampersands.
EDIT.
I should have looked at it a bit closer - it says "orphan &". It does work for these, but not if the ampersand is within a string such as a URL.
Hi Sharkbait.
Actually it is working fine for for the orphaned ampersands as it says in the plug-in. I was wanting it to replace all ampersands, including those that are within a string. It could be a good reason for me to learn a bit more about regular expressions.
Unfortunately this isn’t actually going to work unless I include every possible HTML entity that may be used (©, £, etc).
Just have to live with a few validation errors I guess.