It seems unlikely that wechat officials will open up this feature, so it’s up to us. There are two solutions. The second is my own solution.

First: github.com/icindy/wxPa…

Third party simple implementation, limited to support simple tag parsing, and render out, is not a real WebView, can not have DOM events, JS effects.

The second option: this option is one that I have had best practices with. You can use it for free, but please identify the source of the idea. Using PhantomJS on the server, the HTML, or URL, that the client is about to render is posted to the server, which generates the image through PhatomJS and returns it to the client for display.

This method, if done in real time, will have performance problems. For infrequent content, it is recommended to directly render the image and save the image path when typing in the back end. When the client needs to display, it loads the image directly. The beauty of this approach is that you can display rich text content for arbitrarily complex situations.

Phatomjs renders into images: phantomjs.org/screen-capt…

PHPer can see this package: github.com/jonnnnyw/ph…

Summary if just a simple graphic display, you can also request JSON data through wx.request, and then through the internal components of the small program view, image, text to complete the rendering.

There is another way to hack without open logic. It should also be possible to call the X5 kernel of wechat. After all, it is the internal function of wechat APP. But this significance is not much, because the online is required to review, Tencent is expressly prohibited to call non-open interface, certainly audit can not pass.

Expect it to open up later, but probably always…

Original: www.yinqisen.cn/blog-731.ht…