Skip to content

Instantly share code, notes, and snippets.

@jonathankowalski
Last active December 12, 2015 05:49
Show Gist options
  • Save jonathankowalski/4725032 to your computer and use it in GitHub Desktop.
Save jonathankowalski/4725032 to your computer and use it in GitHub Desktop.
<?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