Il reste encore des améliorations à faire...
function html2txt($document){
$search =
array('@<script[^>]*?>.*?</script>@si',
// Strip out javascript
'@<style[^>]*?>.*?</style>@siU', // Strip style tags properly
'@<[?]php[^>].*?[?]>@si', //scripts php
'@<[?][^>].*?[?]>@si', //scripts php
'@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags
'@<![\s\S]*?--[ \t\n\r]*>@', // Strip multi-line comments including CDATA
);
return $text;
}
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/411"></script>
Pour de plus d'information allez sur le site : http://catinon.info/blog/2006/01/24/3-le-point-sur-les-png-transparent-sous-ie6
/* A modifier dans la page CSS*/
/* A la place de :*/
background-image: url("image.png");
/* remplacer par :*/
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='image.png');
background-image: none;
/* !ATTENTION! Probleme sur les liens, pour resoudre ajouter: */
a, input
{
position: relative;
z-index: 1;
}
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/368"></script>
Pour telecharger la piece "pngfix.js" aller sur le site: http://catinon.info/blog/2006/01/24/3-le-point-sur-les-png-transparent-sous-ie6.
/* A ajouter entre les balise <head> */
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/367"></script>