【问题标题】:Is there a way to display ascii as a string?有没有办法将 ascii 显示为字符串?
【发布时间】:2017-09-02 23:49:46
【问题描述】:

在制作 CMS 时,我在页面内放置注释,其中之一是

Current Season 2017/2018

当我运行页面时,它显示为

Current Season 2017/2018

我希望它在我运行页面 (html/php) 时显示 ascii 代码,以便它在浏览器中读取为

Current Season 2017/2018

我该怎么做?

【问题讨论】:

    标签: html ascii


    【解决方案1】:

    你可以打破 & 把它变成它的实体:

    &
    

    这样

    2017/2018
    

    变成

    2017/2018
    

    【讨论】:

      【解决方案2】:

      您将使用与号代码替换&

      Current Season 2017/2018
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-01-19
        • 2019-03-19
        • 1970-01-01
        • 2023-01-30
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多