Ver Mensaje Individual
  #14 (permalink)  
Antiguo 06/04/2012, 10:54
Avatar de weissbier
weissbier
 
Fecha de Ingreso: febrero-2012
Ubicación: Nella mia casa
Mensajes: 31
Antigüedad: 12 años, 3 meses
Puntos: 1
Respuesta: Rodear elemento con HTMLpurifier

Gracias por la ayuda. He hecho la prueba, y tras mostrarme miles de líneas del tipo:
Cita:
object(simple_html_dom_node)#22 (9) { ["nodetype"]=> int(1) ["tag"]=> string(5) "table" ["attr"]=> array(0) { } ["children"]=> array(1) { [0]=> object(simple_html_dom_node)#23 (9) { ["nodetype"]=> int(1) ["tag"]=> string(5) "tbody" ["attr"]=> array(0) { } ["children"]=> array(22) { [0]=> object(simple_html_dom_node)#24 (9) { ["nodetype"]=> int(1) ["tag"]=> string(2) "tr" ["attr"]=> array(0) { } ["children"]=> array(5) { [0]=> object(simple_html_dom_node)#25 (9) { ["nodetype"]=> int(1) ["tag"]=> string(2) "th" ["attr"]=> array(0) { } ["children"]=> array(0) { } ["nodes"]=> array(1) { [0]=> object(simple_html_dom_node)#26 (9) { ["nodetype"]=> int(3) ["tag"]=> string(4) "text" ["attr"]=> array(0) { } ["children"]=> array(0) { } ["nodes"]=> array(0) { } ["parent"]=> *RECURSION* ["_"]=> array(1) { [4]=> string(5) "Letra" } ["tag_start"]=> int(0) ["dom:private"]=> object(simple_html_dom)#1 (21) { ["root"]=> object(simple_html_dom_node)#2 (9) { ["nodetype"]=> int(5) ["tag"]=> string(4) "root" ["attr"]=> array(0) { } ["children"]=> array(4) { [0]=> object(simple_html_dom_node)#3 (9) { ["nodetype"]=> int(1) ["tag"]=> string(1) "p" ["attr"]=> array(0) { } ["children"]=> array(3) { [0]=> object(simple_html_dom_node)#4 (9) { ["nodetype"]=> int(1) ["tag"]=> string(4) "span" ["attr"]=> array(1) { ["style"]=> string(14) "color:#339966;" } ["children"]=> array(0) { } ["nodes"]=> array(1) { [0]=> object(simple_html_dom_node)#5 (9) { ["nodetype"]=> int(3) ["tag"]=> string(4) "text" ["attr"]=> array(0) { } ["children"]=> array(0) { }
No encuentro diferencias entre una y la siguiente. Aún así, ¿existe un método menos complejo para envolver tablas en un div? Lo digo porque, ¿para qué quiero que el sistema me recoja todos los subelementos de la tabla, si no voy a trabar con ellos...?