Last active
December 12, 2015 05:49
-
-
Save jonathankowalski/4725032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getContentForPdf($htmlText){ | |
//le pdf ne reconnait que les tags p et page, plante sinon :( | |
$pdfText = strip_tags($htmlText, '<p>'); | |
return '<page>'.$pdfText.'</page>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment