Skip to content

Instantly share code, notes, and snippets.

@vhbsouza
Last active December 19, 2015 01:08
Show Gist options
  • Save vhbsouza/5873151 to your computer and use it in GitHub Desktop.
Save vhbsouza/5873151 to your computer and use it in GitHub Desktop.
Pequeno script que remove tags html de arquivo. Fiz pro Daniel.
<?php
$tabela= file_get_contents('nome_do_arquivo_com_tabela.html'); /* Pode ser o site também */
$dados = strip_tags($tabela); // Esse comando tira todas as tags HTML do texto
$arquivo = fopen("tabela_sem_html.txt", 'w');
fwrite($arquivo, $dados);
fclose($fh);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment