Insert content of any page/file/script at any URL on the Internet into any WordPress post or page.
FAQ
What if the web page I’m syndicating has relative URLs?
Unless the content is published in an iframe, relative URLs from an external site will not work. Neither will relative URLs published from your own site when the relative directory is different than where your WordPress page is displayed.
If links and external content (like images) need to work, the URLs of the href and src attributes need to be absolute https:// or https:// URLs – unless, as noted, the content is published in an iframe where relative URLs are relative to the URL of the content rather than the URL of the WordPress page.
Why would I want to convert content into JavaScript before publishing it?
One reason for using this optional feature would be to discourage robots and spiders from reading the content. It may be desirable to keep ads out of search engine indexes, for example, and perhaps also off-topic content so SE’s do not come to wrong conclusions regarding a page’s topic.
What would importing live JavaScript do for me?
Some ads are delivered with JavaScript. Some regular content, such as the Spam-free Form, are delivered with JavaScript.
There are developers who have determined that syndicated or remotely delivered content provided as JavaScript is desirable because it makes their content accessible by more websites – as compared to requiring specific types of web pages, like PHP (for example).
As with all content pulled in from remote websites, not only JavaScript code and not only into WordPress, there must be trust that the provider won’t send nefarious content or code to your page. Otherwise, it may be prudent to just not do it.
ChangeLog
1.5a
Tested to WordPress version 5.0
1.5
Added JavaScript code import and publishing.
Added optional visible HTML tags for plain text publishing.
Removed relative-to-absolute URL conversion within imported content.
Tested to WordPress version 4.9.8.
1.4
Tested to WordPress version 3.6.1
1.3
Changed to use wp_remote_get() instead of creating new instance of WP_Http
1.2
Added the ability to publish syndicated content in an iframe.
1.1
First public distribution version.