Spectre
V2EX  ›  Java

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

  •  
  •   Spectre · Apr 25, 2017 · 4594 views
    This topic created in 3373 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   ·   1631 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:25 · PVG 00:25 · LAX 09:25 · JFK 12:25
    ♥ Do have faith in what you're doing.