6 ms·
"Reduces a HTML document (or fragment) to basic HTML tags and attributes" - meaning what exactly? What counts as a basic attribute?
by richardwhiuk 10y ago
"Reduces a HTML document (or fragment) to basic HTML tags and attributes" - meaning what exactly? What counts as a basic attribute?
- deleted 10y ago[deleted]
- seky 10y agoYes, that could be more specific (and I will make it probably configurable), currently it is: <a href>, <body>, <br>, <div>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <head>, <hr>, <html>, <i>, <img src width height>, <li>, <ol>, <p>, <ruby>, <strong>, <table>, <tbody>, <td colspan rowspan>, <th colspan rowspan>, <title>, <tr>
- oneeyedpigeon 10y agoIt also converts e.g. b to strong.
- mercer 10y agoThat doesn't sound right. By all means correct me if I'm wrong, but I recall learning that there's a semantic difference between b/strong (as well as i/em).
- Mtinie 10y agoThis probably isn't the same source that your'e thinking of, but here's a well-considered answer on SO to the question "Why are the <b> and <i> tags deprecated?". https://softwareengineering.stackexchange.com/a/255588 https://softwareengineering.stackexchange.com/a/255588
- mercer 10y agoThanks!