| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 136 | All time:  9,277 This week: 81  | ||||
| Version | License | PHP version | Categories | |||
| strip-tags-php 1.0.0 | The PHP License | 7.2 | HTML, PHP 5, Parsers | 
| Description | Author | |
| This class can strip tags from a HTML string in several ways. | 
// texto exemplo <br/> $string = '\<p id="paragrafo1" class="paragrafo">O importante é oque mais importa! \<br /> No final tudo é 0 e 1.\</p>';
// Instancia a classe $strip = new StripTags;
// coloca a $string na função para remover as tags
-- A saída vai ser <br /> O importante é oque mais importa! No final tudo é 0 e 1.
-- A saída vai ser <br /> \<p>O importante é oque mais importa! No final tudo é 0 e 1.\</p>
// O segundo parâmetro pode ser string ou array usage.. <br /> $tags_permitidas = array('div', 'a', 'p');
-- A saída vai ser <br /> \<p class="paragrafo1">O importante é oque mais importa! No final tudo é 0 e 1.\</p>
// O terceiro parâmetro pode ser string ou array usage.. <br /> $tags_permitidas = array('div', 'a', 'p'); <br /> $atributos_permitidos = array('class', 'id', 'data-nome');
-- mode usage simple
// string exemple <br /> $string = '\<p id="paragrafo1" class="paragrafo">The important is what matters most \<br /> Not everything is 0 and 1.\</p>';
// Instance the class (invok) <br /> $strip = new StripTags;
// put the string in the function of remove the tags
-- output will be <br /> The important is what matters most Not everything is 0 and 1.
-- output will be <br /> \<p>The important is what matters most Not everything is 0 and 1.\</p>
// the second parameter can be string or array, usage <br /> $tags_allowed = array('div', 'a', 'p');
-- output will be <br /> \<p class="paragrafo1">The important is what matters most Not everything is 0 and 1.\</p>
// the third parameter can be string or array, usage <br /> $tags_allowed = array('div', 'a', 'p'); <br /> $attributes_allowed = array('class', 'id', 'data-name');
-- ass: Matheus Maydana'
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.