Ask for advice, how to use WeChat Mini Programs wxParse?

Mini Program is a novice. In the course of practice, he found that there is a html tag in the interface.
searched the wxParse, reference tutorial of the ODR. My code is as follows:

Json is structured like this:

{
    "meta": {
        ...
    },
    "pages": [
        {...}
    ],
    "posts": [
        {
            "title": "...",
            "content": "

html

\n" } { "title": "...", "content": "

html

\n" } ] }

my app.js:

App({
  onLaunch: function (options) {
    var that = this;
    wx.request({
      url: "https://www.sfatpaper.com/content.json",
      success(res) {
        that.globalData.posts = res.data.posts
      }
    })    
  },
  globalData: {
    posts: ""//
  }
})

my logs.wxml:

<navigator url="/pages/details/details?id={{item.date}}" class="posts" wx:for="{{posts}}" wx:for-index="idx" wx:for-item="item" wx:key="idx">
  <view class="title">{{item.title}}</view>
  <text>{{item.text}}</text>
</navigator>

-the question has been adjusted through the answer on the first floor, and the current question code is as follows-

my details.js:

// pages/posts/posts.js
var WxParse = require("../../wxParse/wxParse.js");
const app = getApp();
Page({
  data: {
    title: "",
    contents: ""
  },
  onLoad: function (options) {
    var that = this;
    that.setData({
      posts: app.globalData.posts
    })
    //
    that.data.posts.map(function (item, idx) {
      if (item.date == options.id) {
      
        //WxParsemap
        console.log("item.content:"+item.content) //
        var parseText = WxParse.wxParse("article", "html", item.content, that, 5)
        console.log("parseText:" + parseText) //parseText:undefined
        //WxParse

        that.setData({
          title: item.title,
          content: item.content
        })
      }
    })
  }
})

Click on the list to bring the parameters in url to the details page, and then the details page uses the parameters to Filter the posts data, and finally obtains the unique content, and then wxParse, it, but I don"t know what will still be reported to me parseText:undefined

on the foreground rendering, the page renders only the first paragraph of the article.


< H2 > posts is an array. You can't read the data by posts.content directly. You want posts [0] .content < / H2 >.

you all adopt and directly change the problem. When others see that it has been solved outside, it is less likely to come in, so it is better for you to write another question:
if the return value is empty, the return value is because WxParse.wxParse () itself does not return a value. Didn't you use the correct introduction method before, and now it has been changed to this way. The
html page should be referenced as follows:

// 
<import src="/wxParse/wxParse.wxml"/>
//dataarticlebindName
<template is="wxParse" data="{{wxParseData:article.nodes}}"/>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b340c2-34291.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b340c2-34291.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?