Jump to content

Super strip_tags


Q695

Recommended Posts

Does anyone know why the following code is stripping everything, instead of nothing until I turn off what I don't want people to use:

        $html5 = '
            <menu> <command> <summary> <details>  <meter>  <progress>
            <output>  <keygen>  <textarea>  <option>  <optgroup>  <datalist>
            <select>  <button>  <input>  <label>  <legend>  <fieldset>  <form>
            <th>  <td>  <tr>  <tfoot>  <thead>  <tbody>  <col>  <colgroup>
            <caption>  <table>  <math>  <svg>  <area>  <map>  <canvas>  <track>
            <source>  <audio>  <video>  <param>  <object>  <embed>  <iframe>
            <img>  <del>  <ins>  <wbr>  <br>  <span>  <bdo>  <bdi>  <rp>  <rt>
            <ruby>  <mark>  <u>  <b>  <i>  <sup>  <sub>  <kbd>  <samp>  <var>
            <code>  <time>  <data>  <abbr>  <dfn>  <q>  <cite>  <s>  <small>
            <strong> <em>  <a>  <div>  <figcaption>  <figure>  <dd>  <dt>
            <dl> <li>  <ul>  <ol>  <blockquote>  <pre>  <hr>  <p>  <address>
            <footer> <header>  <hgroup>  <aside>  <article>  <nav>  <section>
            <body> <noscript>  <script>  <style>  <meta>  <link>  <base>
             <title>  <head>  <html> ';
        $_________=$_POST['_____'];
        $__________=strip_tags($_______, '$html5');

Link to comment
https://forums.phpfreaks.com/topic/286947-super-strip_tags/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.