PHP Classes

File: mappings/layouttable.php

Recommend this page to a friend!
  Classes of Jill Lingoff   Sweeper   mappings/layouttable.php   Download  
File: mappings/layouttable.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Sweeper
Clean HTML to remove unwanted tags and attributes
Author: By
Last change:
Date: 5 years ago
Size: 705 bytes
 

Contents

Class file image Download
<?php

$LayoutTableArray
= array(

'<table([^>]*)>' => '<div$1>',
'<tr([^>]*)>' => '<div$1 style="clear:both;">',
'<\/tr>' => '</div>',
'<td([^>]*)>' => '<div$1 style="float:left;">',
'<\/td>' => '</div>',
'<th([^>]*)>' => '<div$1 style="float:left;">',
'<\/th>' => '</div>',
'<\/table>' => '</div>',
'<div([^>]*) colspan="[^"]*"([^>]*)>' => '<div$1$2>',
'<div([^>]*) rowspan="[^"]*"([^>]*)>' => '<div$1$2>',
'<div([^>]*) scope="[^"]*"([^>]*)>' => '<div$1$2>',
'<div([^>]*) width="600"([^>]*)>' => '<div$1 style="width:100%;"$2>',
'<div([^>]*) border="0"([^>]*)>' => '<div$1$2>',
'<div([^>]*) cellspacing="[^"]*"([^>]*)>' => '<div$1$2>',
'<div([^>]*) cellpadding="[^"]*"([^>]*)>' => '<div$1$2>',
 
);

?>