【问题标题】:display quotation marks within a variable freemarker - netsuite advanced pdf在变量 freemarker 中显示引号 - netsuite 高级 pdf
【发布时间】:2019-11-09 01:30:27
【问题描述】:

我正在尝试从netsuite数据库中以PDF格式显示结果,但是有些结果带有引号,所以结果不完整,尝试在每个变量的末尾添加“?html”,但不影响我想要的专栏。 我希望你能帮助我,问候!

Netsuite 高级 PDF 模板 - Freemarker

<table cellmargin="5"><#list results as result><tr>
    <td style="width: 150px;">
      <#if result.custitem_gg_item_image?length != 0><img src="https://----com${result.custitem_gg_item_image}" style="width: 125px; height: 125px;"/><#else><img src="https:/---.com" style="width: 125px; height: 125px;"/></#if>
        </td>
    <td><strong style="font-size: 12pt"><u><span>${result.itemid?html}</span></u></strong><br/><br/><strong style="font-size: 10pt"><span>${result.displayname?html}</span></strong><br/><br/>
      <#if result.purchasedescription?length != 0><span>${result.purchasedescription?html}</span><#else><span>${result.salesdescription?html}</span></#if></td>
    </tr>
    </#list>
  </table>

【问题讨论】:

    标签: netsuite freemarker quotation-marks


    【解决方案1】:

    仅在字段值中使用引号不会导致任何问题。您在销售和购买说明中也有 html 吗?通常你不应该这样做 - 将 html 保留为 storedetaileddescription 字段。

    如果您的问题实际上是描述中的 html,请查看以下答案:Remove HTML tags in Freemarker Template

    【讨论】:

      猜你喜欢
      • 2014-05-08
      • 2019-07-18
      • 2018-10-20
      • 2018-01-01
      • 2018-01-02
      • 2019-12-09
      • 2018-01-09
      • 2020-05-20
      • 2019-02-21
      相关资源
      最近更新 更多