Spectre
V2EX  ›  Java

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

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

    求解决方法!

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