snipt

Ctrl+h for KB shortcuts

HTML

Direct link to a file in Google Drive

http://googledrive.com/host/<folderID>/<filename>
https://snipt.net/embed/56115e84b86f29148d6a1212fc1be58d/
https://snipt.net/raw/56115e84b86f29148d6a1212fc1be58d/
56115e84b86f29148d6a1212fc1be58d
html
HTML
1
2016-09-26T01:51:56
True
False
False
Jul 05, 2013 at 02:36 PM
/api/public/snipt/66465/
direct-link-to-a-file-in-google-drive
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>http://googledrive.com/host/<span class="nt">&lt;folderID&gt;</span>/<span class="nt">&lt;filename&gt;</span> </span></pre></div> </td></tr></table>
"Google Drive", HTML, link

PHP

Enable all HTML Tags in Profile Bios

1
2
3
4
//disable WordPress sanitization to allow more than just $allowedtags from /wp-includes/kses.php
remove_filter('pre_user_description', 'wp_filter_kses');
//add sanitization for WordPress posts
add_filter( 'pre_user_description', 'wp_filter_post_kses');
https://snipt.net/embed/03099d6aaa94d07f656572b26361c4e1/
https://snipt.net/raw/03099d6aaa94d07f656572b26361c4e1/
03099d6aaa94d07f656572b26361c4e1
php
PHP
4
2016-09-26T01:23:34
True
False
False
Sep 10, 2012 at 01:41 PM
/api/public/snipt/46967/
enable-all-html-tags-in-profile-bios
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="x">//disable WordPress sanitization to allow more than just $allowedtags from /wp-includes/kses.php</span> </span><span id="L-2"><a name="L-2"></a><span class="x">remove_filter(&#39;pre_user_description&#39;, &#39;wp_filter_kses&#39;);</span> </span><span id="L-3"><a name="L-3"></a><span class="x">//add sanitization for WordPress posts</span> </span><span id="L-4"><a name="L-4"></a><span class="x">add_filter( &#39;pre_user_description&#39;, &#39;wp_filter_post_kses&#39;);</span> </span></pre></div> </td></tr></table>
"enable HTML in bio", HTML, bio, filter, wordpress
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.