HTML Tidy strip tags
Asked Answered
B

2

0

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  );
    

Thanks..

Breazeale answered 13/10, 2012 at 8:21 Comment(0)
U
0

Also had this problem. You can add &nbsp; in the tags. Html tidy will remove the tags since it thinks nothing will be displayed in any case, for example:

<b class="caret">&nbsp;</b>

Urochrome answered 23/4, 2013 at 17:8 Comment(0)
F
0

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>

should be:

            <span class="icon-bar">&nbsp;</span>
            <span class="icon-bar">&nbsp;</span>
            <span class="icon-bar">&nbsp;</span>
Ferrara answered 16/1, 2014 at 17:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.