Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <span style="font-size:18px">
- <span style="font-family:helvetica-light"><span style="color:rgb(140, 190, 207)">Cultura</span></span></span></p>
- <p> </p>
- <h2 style="text-align:center"><span style="font-size:42px"><span style="color:rgb(140, 190, 207)"><strong><span style="font-family:helveticaneue">O CIRCO CHEGOU!</span></strong></span></span></h2>
- <p style="margin-left:80px; margin-right:80px; text-align:center"><span style="color:rgb(71, 71, 71); font-family:helveticaneue-light; font-size:30px">Cirque du Soleil apresenta espetáculo “Amaluna” em São Paulo e no Rio de Janeiro, na sexta passagem da maior companhia circense do mundo pelo Brasil</span></p>
- <p style="text-align:center"> </p>
- <p style="text-align:center"><span style="font-size:22px"><span style="font-family:helveticaneue"><span style="color:#8cbecf"><em>Por Melissa Schröder - Edição de André Schröder</em><br />
- 25/09/2017</span></span></span></p>
- <span style="color:rgb(140, 190, 207)"><strong><span style="font-family:helveticaneue">
- public function htmlToTextTags($Document) {
- if (preg_match('/<img(.+)? style=".+?height:(4d|5d|6d|7d)(%|px);.+?"[^>]*>/', $Document, $matches)) {
- if(count($matches)) {
- $Document = str_replace($matches[0], "", $Document);
- }
- }
- $Rules = array (
- '@<script[^>]*?>.*?</script>@si',
- '@<style[^>]*?>.*?</style>@si',
- '@<h2 style="text-align:center">.*?</h2>@si',
- '@<span style="color:rgb((71, 71, 71)); font-family:helveticaneue-light.*?"?>*.?</span>@si',
- '@<span.*?><span style="color:#8cbecf">.*?</span></span>@si',
- '@<p style="text-align:center"><img.*?></p>@si',
- '@([rn])[s]+@',
- '@&(quot|#34);@i',
- '@&(amp|#38);@i',
- '@&(lt|#60);@i',
- '@&(gt|#62);@i',
- '@&(nbsp|#160);@i',
- '@<div style="transform: rotate((-90deg)); -webkit-transform: rotate((-90deg));.+"?>*.?</div>@'
- );
- $Replace = array (
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '"',
- '&',
- '<',
- '>',
- ' ',
- ''
- );
- return html_entity_decode(utf8_decode((preg_replace($Rules, $Replace, $Document))));
- }
Add Comment
Please, Sign In to add comment