Esempio n. 1
0
function post_Prepare($text)
{
    $text = emoji_ToShort($text);
    // Convert Emoji to Short Codes
    $text = markdown_FromHTML($text);
    // Convert HTML to Markdown and Strip Tags
    //	$text = strip_tags($text,'<img><img/><a><br><br/><b><strong><i><em><u><p><h1><h2><h3><h4><h5><h6><blockquote><del>');
    // Now that all other tags are stripped, convert what remains in to
    //$text = htmlspecialchars($text,ENT_HTML5);
    return $text;
}
Esempio n. 2
0
<a href="mailto:mikekasprzak(is_a_jerk)@gmail.com">hahaha</a>
<a href="mailto:webmaster@198.84.214.150">hahaha</a>

<?php 
print_r(parse_url("javascript:alert('mommy');"));
print_r(parse_url("HTTp://bogart.com/meat/lefties/?snoop=11"));
print_r(parse_url("magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C"));
echo '<br />';
echo '<br />';
echo 'Wörmann';
echo htmlspecialchars('Wörmann', ENT_COMPAT | ENT_SUBSTITUTE, 'UTF-8');
echo '<br />';
echo '<br />';
const happypoo = '💩';
echo emoji_ToShort(happypoo . happypoo . ":D You smell ") . happypoo;
echo "<script>emojione.ascii = true;</script>";
echo "<script>\nvar MyAscii = {\n\t'^_^':'1F49A',\n\t'KeyWord':'1f636'\n};\n\nfor(var Key in MyAscii) {\n\temojione.asciiList[Key] = MyAscii[Key];\n}\n\nvar MyCode = {\n\t':dpad:':['custom/dpad'],\n};\n\nfor(var Key in MyCode) {\n\temojione.emojioneList[Key] = MyCode[Key];\n}\n</script>";
echo "<div id='zork'></div>";
echo "<script>document.getElementById('zork').innerHTML = emojione.toImage(emojione.toShort(\n\t'can you believe that there is 💩  everywhere! :D :| ^_^ :> :( KeyWord :dpad:'));</script>";
echo '<br />';
echo '<br />';
$str = "Glorious is this world. \"It belongs to ME!\". She thought 'why'. <strong>man</strong> ア à 💩";
$str .= "￾";
// Bad Code U+FFFE
echo "<a href='" . $str . "'>" . $str . "</a>";
echo '<br />';
echo '<br />';
$str2 = htmlspecialchars($str, ENT_QUOTES);
echo "<a href='" . $str2 . "'>" . $str2 . "</a> : " . sanitize_Url($str2);
echo '<br />';