Refactor to use transform string #428
Refactor to use transform string #428
Conversation
Encoding detection/conversion is now being supported from v1.5.0 of Instant Article SDK by transformString function. We can get rid of 'loadHTML' stuffs from our plugin and make the code simpler. This commit also removes the relative url transformation introduced by the comit da90925 (PR #220) but we now should not need this logic on plugin side.
LGTM Next version. |
Any chance this gets in the 3.2 milestone? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually made the changes in the plugin already installed in Wordpress and it works ok!
@philipjohn I didn't intend to merge this myself. I simply wanted to resolve the merge conflict, but since it was originally committed straight into master, this was the result. Hope this is ok! |
Thanks @yssk22 san @philipjohn some of the merged changes of this PR were reverted with 49c22d0 commit. Could you please re-merge it? It prevents |
- as @yssk22 commented in Automattic#428, the refactored code has been reverted back by mistake, and it result in garbled MB characters in title.
@yssk22 thank you for figuring out! I created a quick PR for this and it'll hopefully be included in the next release. |
- as @yssk22 commented in Automattic#428, the refactored code has been reverted back by mistake, and it result in garbled MB characters in title.
This PR:
transformString
and remove the complexities ofloadHTML
things.Follows #395
Relates to #369, #344
Fixes #339