Spectre
V2EX  ›  Java

freemarker 从后台取生成的 html 字符串在页面显示成字符而不是 html

  •  
  •   Spectre · Apr 25, 2017 · 4821 views
    This topic created in 3483 days ago, the information mentioned may be changed or developed.

    求解决方法!

    3 replies  •  2017-12-29 16:39:29 +08:00
    knightdf
    knightdf
    Apr 25, 2017
    1
    content-type
    Spectre
    Spectre
    OP
    Apr 25, 2017
    2
    @knightdf 解决了。。 StringEscapeUtils.unescapeHtml()
    Amance
    Amance
    Dec 29, 2017
    3
    @Spectre 怎么解决的呢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1796 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 09:27 · PVG 17:27 · LAX 01:27 · JFK 04:27
    ♥ Do have faith in what you're doing.