Iframes, apostrophe, urldecode… Ack
-
I’ll try my best to make the issue clear. Let me know if I can clarify anything.
I’m working on a project that uses an iframe to serve up a widget that collects some info from a wp blog. It collects things like the_permalink, the_title, the_excerpt, etc.
The problem that I’m having is when a single quote/apostrophe is used inside the title or the post. I’m pretty positive that WP is garbling up the quotes, because they render correctly in the blogger engine.
It looks something like this:
<iframe><iframe style="width:Xpx;height:Xpx;" frameborder="0" src="https://www.xxxx.com/widget.php&pU=<?php the_permalink()?>&pT=<![CDATA[<?php the_title()?>]]>&"></iframe>
On the recipient side, I’m processing and dealing with the pU & pT.Here’s what I’m seeing.
- When I look at the source for the blog post itself it renders correctly – test’ shows as
test’
- When I look at the source for the iframe, it cannot figure out what it’s supposed to do – test’ shows as test?
- When I show only the frame, the url shows the apostrophe – test’ shows as test’
- When I look at the info for the info for the frame, it renders as url format – test’ shows as test%e2%80%99
I think the %e2%80%99 is the culprit, which is why it renders as test?
Does anyone have any idea what I should do to render the quotes correctly? I’ve been spinning my wheels for days.
- When I look at the source for the blog post itself it renders correctly – test’ shows as
- The topic ‘Iframes, apostrophe, urldecode… Ack’ is closed to new replies.