in reply to Re^3: output div tag inside html
in thread output div tag inside html
i dont mean to print the li only as u see my script is to print the whole li inside li there is div as u see example
when u run the script u will see the output
i just want to output the whole
i want to get <li> #Foo with all div and span inside here </li> <li> #bar with all div and span inside here </li> <li> #moo with all div and span inside here </li> [download] use CGI::Pretty ":standard"; @names = ('Foo', 'Bar', 'Moo'); my $str = join(" ",@names); $data = li ( div({"class='inforno'"}, "<img src='inforno>'"), div({"class='inforno'"}, "<a href='#' class='inforno'>$str< +/a>"), span({"class='inforno'"}, "<a href='#' class='inforno'> Edit user </a>") ); print "$data\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: output div tag inside html
by marto (Cardinal) on Sep 14, 2018 at 11:35 UTC | |
by bigup401 (Pilgrim) on Sep 14, 2018 at 11:55 UTC | |
by marto (Cardinal) on Sep 14, 2018 at 11:56 UTC |