The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
apple2026

golang 有什么好用的工具使 字符串转为带 html 标签的字符串?

  •  
  •   apple2026 · Apr 11, 2022 · 1643 views
    This topic created in 1681 days ago, the information mentioned may be changed or developed.
    4 replies  •  2022-04-12 09:05:53 +08:00
    linglin0924
    linglin0924
    Apr 11, 2022
    1
    hello 转换成 <a> hello </a>?

    html 标签就那几个,自己手动拼接呗
    apple2026
    apple2026
    OP
    Apr 11, 2022
    2
    @linglin0924 也对,没几个,自己手动切一下加上算了。。
    raaaaaar
    raaaaaar
    Apr 11, 2022
    3
    直接搓一个轮子?
    apple2026
    apple2026
    OP
    Apr 12, 2022 via iPhone
    4
    @raaaaaar 我的需求简单 回车换行切开,然后前后加个 p 标签,三行代码……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1091 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:34 · PVG 02:34 · LAX 10:34 · JFK 13:34
    ♥ Do have faith in what you're doing.