Skip to content

Instantly share code, notes, and snippets.

@TiuTalk
Created February 20, 2015 02:47
<?php
// Define uma string com código HTML
$entrada = '
Ahá... [eu](mailto: fulaninho@uol.com.br) sou <strong>malandrão!</strong>
';
$saida = strip_tags($entrada);
echo $saida;
// Saída: Ahá... eu sou malandrão!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment