Closed tomjoht closed 9 years ago
Some encoding issue, and who the hell knows how to fix that. :football: :runner:
I can find all curly quotes and replace them straight quotes. I'm not even sure where the curly stuff came from, honestly.
One thing I'm unsure about is how to grab links. If the page has a link like this:
<a href="http://google.com">google.com</a>
When the pages become json, all that carries over is google.com
unless I use character codes for the angle brackets. How can I pass all of the HTML tags through JSON?
The original use case for this plugin was to support search, so I very intentionally stripped out HTML. If you need the markup, I'd say to follow the url
and request the pages themselves.
@tomjohnson1492 I don't think there's an encoding issue for this gem... just added a test in #18. Looked into your particular issue a bit, and it seems that your HTML might be invalid:
http://idratherbewriting.com/wp-content/apidemos/docasapi/about/
Not sure if this was intentional, to test it? Not sure where that's getting converted to invalid(?) characters in this gem, but not sure what the ideal result would be, either. I understand very little about encoding anyway, so would love advice from anyone that stumbles upon this thread.
Do you know how to avoid characters that get munged in the conversion, such as a curly apostrophe in "user's" getting converted to user’s?