Spectre
V2EX  ›  Java

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

  •  
  •   Spectre · Apr 25, 2017 · 4719 views
    This topic created in 3440 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   ·   Privacy   ·   Solana   ·   2644 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 02:19 · PVG 10:19 · LAX 19:19 · JFK 22:19
    ♥ Do have faith in what you're doing.