layui html code data table which escapes

table.render({
  elem: '#release_table'
  ,url:'data_list'
  ,where: {table: 'release'}

  // escaped escaped two steps, the first data into the original html tag, then the html tag is removed
  , parseData: function (RES) {
    for (var I = 0; I <res.count; I ++) {
      res.data [I] .content = HtmlDecode (res.data [I] .content) .replace (/ <[^>] +> / G, "");
    }
  }
  , cols: [[
    , {Field: 'Content', title: 'specific requirements'}
  ]]
  , Page: to true
});

Guess you like

Origin www.cnblogs.com/gdtimes/p/11941402.html