HTML Tidy条形标签 [英] HTML Tidy strip tags

查看:72
本文介绍了HTML Tidy条形标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为引导程序开发动态模板,并且正在使用HTML Tidy.但是,似乎HTML Tidy删除了特定的标签,例如:

I'm working on dynamic template for bootstrap, and i'm using HTML Tidy. However it seem HTML Tidy remove specific tags, for example:


      <b class="caret"></b>
    

该如何解决呢? 我的选项/配置是

How to supposed solve this ? my options/config is


     $options = array('indent'  => true,
                 'wrap'   => '300',
                "indent-spaces" => 4,
                'clean'=>false  );
    

谢谢..

推荐答案

我和你们两个都有相同的问题,&nbsp;帮助了我,我只想提一提 如果您负责的话,还必须将&nbsp;放入导航栏中的折叠图标中,请参见以下内容:

I also had the same issues as both of you, the &nbsp; helped, i just wanted to mention that if you work responsible, that you also would have to put a &nbsp; into the collapse-icon in the navbar, see following:

            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>

应为:

            <span class="icon-bar">&nbsp;</span>
            <span class="icon-bar">&nbsp;</span>
            <span class="icon-bar">&nbsp;</span>

这篇关于HTML Tidy条形标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆